| | |
| | | return; |
| | | txt_suppId.getSuppler(orgId, _ucGys); |
| | | txt_fPurchaseDeptId.getSuppler(orgId, _ucBm); |
| | | // txt_fPurchaserId.getSuppler(); |
| | | }; |
| | | //选择需要的明细 |
| | | btnSelect.Click += (s, e) => |
| | |
| | | var frm2 = new SelectMesCgthSqLink(this.txt_thOrgId.GetId()); |
| | | frm2.UpdateParent += (ss, ee) => |
| | | { |
| | | try |
| | | { |
| | | var lst = ee.DynamicList; |
| | | DataTable _Table = (DataTable)gcMx1.DataSource; |
| | | foreach (dynamic dym in lst) |
| | | { |
| | | DataRow _row = _Table.NewRow(); |
| | | _row["id"] = dym.id; |
| | | _row["mid"] = dym.mid; |
| | | _row["rkmxGuid"] = dym.rkmxGuid;//入库明细表guid |
| | | _row["cgdh"] = dym.cgdh;//采购单号 |
| | | _row["invWorkLine"] = dym.invWorkLine;//行号, |
| | | _row["wlbm"] = dym.wlbm; //物料编号, |
| | | _row["wlmc"] = dym.wlmc; //物料名称, |
| | | _row["wlgg"] = dym.wlgg;//规格型号, |
| | | _row["rksl"] = dym.rksl; //入库数量, |
| | | _row["dwName"] = dym.dwName; |
| | | _row["eid"] = dym.eid; |
| | | _row["erpid"] = dym.erpid; |
| | | _row["itemId"] = dym.itemId; //物料id, |
| | | _row["ysNum"] = dym.ysNum;//已扫数量 |
| | | _row["remark"] = dym.remark; |
| | | _row["orderNo"] = dym.orderNo; //序号 |
| | | _row["kcQty"] = dym.kcQty; //库存数量 |
| | | _Table.Rows.Add(_row); |
| | | } |
| | | gcMx1.BindingContext = new BindingContext(); |
| | | gcMx1.DataSource = _Table; |
| | | gcMx1.ForceInitialize(); |
| | | gvMx1.CloseEditor(); |
| | | gvMx1.PostEditor(); |
| | | gvMx1.UpdateCurrentRow(); |
| | | gvMx1.BestFitColumns(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MessageBox.Show(ex.Message); |
| | | } |
| | | }; |
| | | frm2.ShowDialog(); |
| | | return; |
| | |
| | | txt_fHasLinkRad.SelectedIndex = 0; |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | txt_fHasLinkRad.SelectedIndexChanged += (s, e) => |
| | | { |
| | |
| | | txt_fRequireOrgId.IsReadly = true; |
| | | txt_fOwnerIdHead.IsReadly = true; |
| | | txt_fPurchaseDeptId.IsReadly = true; |
| | | txt_fPurchaserId.IsReadly = true; |
| | | // txt_fPurchaserId.IsReadly = true; |
| | | } |
| | | /// <summary> |
| | | /// 新增事件 |
| | |
| | | string _xqzz = txt_fRequireOrgId.GetId();//需求组织 |
| | | string _hz = txt_fOwnerIdHead.GetId();//货主 |
| | | string _bm = txt_fPurchaseDeptId.GetId();//部门 |
| | | string _ygbh = txt_fPurchaserId.GetId();//员工 |
| | | //string _ygbh = txt_fPurchaserId.GetId();//员工 |
| | | string _ygbh = ""; |
| | | if (string.IsNullOrEmpty(_orgId)) |
| | | { |
| | | MsgHelper.ShowError("请选择组织!"); |
| | |
| | | txt_fPurchaseDeptId.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(_ygbh)) |
| | | { |
| | | MsgHelper.ShowError("请选择员工!"); |
| | | txt_fPurchaserId.Focus(); |
| | | return; |
| | | } |
| | | //if (string.IsNullOrEmpty(_ygbh)) |
| | | //{ |
| | | // MsgHelper.ShowError("请选择员工!"); |
| | | // txt_fPurchaserId.Focus(); |
| | | // return; |
| | | //} |
| | | } |
| | | var _obj = new |
| | | { |
| | |
| | | Quantity = decimal.Parse(row["sqNum"].ToString()), |
| | | Bz = row["remark"].ToString(), |
| | | DepotId = row["depotId"].ToString(), |
| | | ItemId = row["itemId"].ToString(), |
| | | }); |
| | | } |
| | | } |
| | |
| | | { |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | // layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; |
| | | } |
| | | else |
| | | { |
| | | layItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem2.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | //layItem3.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | layItem4.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; |
| | | } |
| | | } |