private void OnFormLoad(object sender, EventArgs e) { poDal = new PODal(); poQueryDal = new POQueryDal(); ucQueryCondition.LoadDataSource(); CustomFields.AppendMaterialFields(gvDetails); }
private void OnFormLoad(object sender, EventArgs e) { ImageCollection ic = IconHelper.LoadToolImages(); barManager1.Images = ic; barButtonItem1.ImageIndex = (int)IconHelper.Images.add; barButtonItem5.ImageIndex = (int)IconHelper.Images.open; barButtonItem4.ImageIndex = (int)IconHelper.Images.copy; barButtonItem6.ImageIndex = (int)IconHelper.Images.save; barButtonItem7.ImageIndex = (int)IconHelper.Images.basedata; barButtonItem2.ImageIndex = (int)IconHelper.Images.print; //初始化控件的值 InitUI(); CustomFields.AppendMaterialFields(gridView1); if (!string.IsNullOrEmpty(BillID)) { ShowPODetail(); } }
private void OnFormLoad(object sender, EventArgs e) { ImageCollection ic = AppResource.LoadToolImages(); barManager1.Images = ic; barButtonItem1.ImageIndex = (int)AppResource.EIcons.add; barButtonItem5.ImageIndex = (int)AppResource.EIcons.open; barButtonItem4.ImageIndex = (int)AppResource.EIcons.copy; barButtonItem6.ImageIndex = (int)AppResource.EIcons.save; barButtonItem2.ImageIndex = (int)AppResource.EIcons.print; //初始化控件的值 InitUI(); CustomFields.AppendLotExpFields(gridView1, true); CustomFields.AppendMaterialFields(gridView1); if (EditedAsnBody != null) { ShowAsnDetail(EditedAsnBody); } }
private void OnFormLoad(object sender, EventArgs e) { dateEditFrom.DateTime = DateTime.Now.AddMonths(-1); dateEditTo.DateTime = DateTime.Now; try { CustomFields.AppendMaterialFields(gvHeader); //绑定供应商 listSupplier.Properties.DataSource = new SupplierDal().ListActiveSupplierByPriority(); //绑定采购业务员 listSales.Properties.DataSource = new UserDal().ListUsersByRoleAndOrgCode(GlobeSettings.LoginedUser.OrgCode, GlobeSettings.POSalesRoleName); //绑定业务类型 listBillType.Properties.DataSource = BaseCodeDal.GetItemList(BaseCodeConstant.PO_TYPE); } catch (Exception ex) { MsgBox.Err(ex.Message); } }
public void CustomGridCaption() { CustomFields.AppendMaterialFields(gvDetails); }