private void OnFormLoad(object sender, EventArgs e) { ImageCollection ic = IconHelper.LoadToolImages(); barManager1.Images = ic; barButtonItem1.ImageIndex = (int)IconHelper.Images.ok; barButtonItem2.ImageIndex = (int)IconHelper.Images.back; barButtonItem3.ImageIndex = (int)IconHelper.Images.information; barButtonItem4.ImageIndex = (int)IconHelper.Images.approved; barButtonItem5.ImageIndex = (int)IconHelper.Images.search; barButtonItem6.ImageIndex = (int)IconHelper.Images.refresh; barButtonItem7.ImageIndex = (int)IconHelper.Images.message; barButtonItem8.ImageIndex = (int)IconHelper.Images.log; poDal = new PODal(); poQueryDal = new POQueryDal(); //如果没有二审权限,把一些按钮的功能禁掉 EnableToolbarByApproveType(); //初始化显示的物料明细字段 ucPoBody1.RemoveColumn("RealQty"); ucPoBody1.CustomGridCaption(); //默认列出等待二审的单据 ucQueryCondition.DoQuery(BillStateConst.PO_STATE_CODE_FIRST_APPROVED, "单据状态=等待审批(二审)的采购单"); }
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) { poDal = new PODal(); txtRemark.Text = PoHeader.Remark; if (PoHeader.RowForeColor != null) { colorFore.Color = Color.FromArgb(PoHeader.RowForeColor.Value); } else { colorFore.Color = Color.Empty; } }
public PrePOManager(IPOManager ipo) { poDal = new PODal(); poQueryDal = new POQueryDal(); this.ipo = ipo; }