Ejemplo n.º 1
0
        private void OnFormLoad(object sender, EventArgs e)
        {
            poDal      = new PODal();
            poQueryDal = new POQueryDal();

            ucQueryCondition.LoadDataSource();
            CustomFields.AppendMaterialFields(gvDetails);
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
 public void CustomGridCaption()
 {
     CustomFields.AppendMaterialFields(gvDetails);
 }