| | |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | //设置销售单 |
| | | txt_salesId.getSuppler("", ""); |
| | | this.txt_salesId.EditChanged += (s, e) => |
| | | { |
| | | string _sqGuid = txt_salesId.GetId(); |
| | |
| | | txt_fCustomerID.Text = txt_salesId.GetSalesCusName(); |
| | | txt_fSaleOrgId.Text = txt_salesId.GetSalesOrgName(); |
| | | System.Text.StringBuilder sbWhere = new System.Text.StringBuilder(); |
| | | sbWhere.Append(" and a.FSubsidiary ='" + _sqGuid + "'"); |
| | | var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), ""); |
| | | var _obj = new PageQueryModel(1, 999999, "item_no", "asc", "", sbWhere.ToString(), _sqGuid); |
| | | var json = JsonConvert.SerializeObject(_obj); |
| | | try |
| | | { |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | }; |
| | | |
| | | } |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billNo, gridView1, "fBillNo"); |
| | | lbGuid, txt_billNo, gridView1, "billNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string djlx = txt_fBillTypeID.Text.ToString(); |
| | | string FNote = txt_fNote.Text.ToString(); |
| | | string djlx = txt_fBillTypeID.Text.ToString(); |
| | | string FNote = txt_fNote.Text.ToString(); |
| | | string _sqGuid = txt_salesId.GetId(); |
| | | if (txt_fBillTypeID.SelectedIndex < 0) |
| | | { |
| | |
| | | } |
| | | if (string.IsNullOrEmpty(_sqGuid)) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择申请组织!"); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("请选择销售单!"); |
| | | txt_salesId.Focus(); |
| | | return; |
| | | } |
| | |
| | | SalesDetailId = (row["salesDetailId"].ToString()), |
| | | Sqsl = (row["fMustQty"].ToString()), |
| | | Bz = (row["fEntrynote"].ToString()), |
| | | Yjsj = (row["YjfhDate"].ToString()), |
| | | }); |
| | | } |
| | | } |
| | |
| | | }; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1, "fBillNo"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_billNo, gridView1, "billNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | } |
| | | int rowHandle = gridView1.LocateByValue(1, gridView1.Columns["guid"], rowGuid); |
| | | gridView1.FocusedRowHandle = rowHandle; |
| | | UtilityHelper.SetCheckIco(gridView1, "chkStatus", "FAPPROVEBY", "FAPPROVEDATE", picCheckBox, this, _inFieldValue.ToString()); |
| | | UtilityHelper.SetCheckIco(gridView1, "chkStatus", "fApproverID", "fApproveDate", picCheckBox, this, _inFieldValue.ToString()); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |