Beispiel #1
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            btnQuery_Click(null, null);
            ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI

            ProcessGrid.BindGridColumn(gridView2, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView2, FormListAID, FormListBID); //设置列UI

            ProcessGrid.BindGridColumn(gridView3, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView3, FormListAID, FormListBID); //设置列UI

            ProcessGrid.BindGridColumn(gridView4, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView4, FormListAID, FormListBID); //设置列UI

            ProcessGrid.BindGridColumn(gridView6, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView6, FormListAID, FormListBID); //设置列UI
            txtQJCTimeS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtQJCTimeE.DateTime = DateTime.Now.Date;
            txtQGHTimeS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtQGHTimeE.DateTime = DateTime.Now.Date;
            Common.BindYear(drpCheckYear, 3, 1, false);
            drpCheckYear.Text = DateTime.Now.Year.ToString();
            Common.BindOP(drpSaleOPID, true);
            this.HTDataTableName = "UV2_Dev_GBJCDts";
            Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);//客户
            new VendorProc(drpQVendorID);
            Common.BindGBStatus(drpQGBStatusID, true);
            btnQuery_Click(null, null);
        }
Beispiel #2
0
        /// <summary>
        /// 加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmGBGH_Load(object sender, EventArgs e)
        {
            try
            {
                Common.BindGBStatus(repGBStatus, true);

                txtScan.Focus();
                string sql = "SELECT *,'' ItemCode,'' ItemName,'' ItemStd,'' ItemModel,'' MWidth,'' MWeight,'' ColorNum,'' ColorName FROM Dev_GBJCDts WHERE 1=0";
                dtCode = SysUtils.Fill(sql);


                ProcessGrid.BindGridColumn(gridView1, this.FormID);                           //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID);             //设置列UI

                gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1); //绑定GridView1事件
                gridViewBindEventA1(gridView1);


                ProcessGrid.BindGridColumn(gridView2, this.FormID);               //绑定列
                ProcessGrid.SetGridColumnUI(gridView2, FormListAID, FormListBID); //设置列UI
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #3
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmWait_Load(object sender, EventArgs e)
        {
            try
            {
                ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI



                SaleOrder entity = new SaleOrder();
                entity.ID = m_ID;
                entity.SelectByID();

                SaleItemType = Common.GetSaleItemTypeByID(entity.SaleFlowModuleID);



                if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(5009)))//面料的坯布启用可替换坯布功能,影响到订单坯布算料、坯布采购、织造等
                {
                }
                else
                {
                    gridView1.Columns["CPItemCode"].Visible = false;
                }
                BindGrid();
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #4
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
     ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
     this.HTDataTableName = "Finance_RecPay";
     this.HTDataDts       = gridView1;
     //this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[] { gridView2, gridView3 };
     this.HTCheckDataField = new string[] { "Project" };//数据明细校验必须录入字段
     //this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, btnLoad_Click);
     Common.BindCLS(txtMoneyType, "Finance_RecPay", "MoneyType", true);
     Common.BindCLS(txtExMethod, "Finance_RecPay", "ExMethod", true);
     Common.BindPayStepType(drpPayStepType, true);
     Common.BindOP(drpSaleOPID, true);
     if (FParamConfig.LoginHTFlag)
     {
         btnGs.Visible = true;
     }
     Common.BindRecPayType(drpRecPayType, true);
     if (this.FormListAID == (int)EnumRecPayType.收款)
     {
         DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     }
     else if (this.FormListAID == (int)EnumRecPayType.付款)
     {
         DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.染厂, (int)EnumVendorType.工厂, (int)EnumVendorType.检测机构, (int)EnumVendorType.快递公司, (int)EnumVendorType.物流公司, (int)EnumVendorType.供应商 }, true);
     }
     else
     {
         DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.染厂, (int)EnumVendorType.工厂, (int)EnumVendorType.检测机构, (int)EnumVendorType.快递公司, (int)EnumVendorType.物流公司, (int)EnumVendorType.供应商 }, true);
     }
     //new VendorProc(drpVendorID);
 }
Beispiel #5
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);

            ProcessGrid.BindGridColumn(gridView2, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView2, this.FormListAID, this.FormListBID);

            ProcessGrid.BindGridColumn(gridView3, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView3, this.FormListAID, this.FormListBID);

            ProcessGrid.BindGridColumn(gridView4, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView4, this.FormListAID, this.FormListBID);
            Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpQVendorID);
            drpCheckYear.Text = DateTime.Now.Year.ToString();

            txtQMakeDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtQMakeDateE.DateTime = DateTime.Now;

            this.HTQryContainer = groupControlQuery;

            this.HTDataTableName = "Sale_SaleOrder";
            btnQuery_Click(null, null);
        }
Beispiel #6
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);



            Common.BindOP(drpSaleOPID, true);
            Common.BindKPType(drpKPType, true);
            Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            lbVendor.Text = "客户";
            new VendorProc(drpVendorID);
            this.ToolBarItemAdd(28, ToolButtonName.btnToExcel.ToString(), "导出EXCEL", false, btnToExcel_Click);
            switch (FormListAID)
            {
            case 1:

                break;

            case 2:
                Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
                lbVendor.Text = "工厂";
                new VendorProc(drpVendorID);
                break;
            }
            txtFormDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtFormDateE.DateTime = DateTime.Now.Date;
            btnQuery_Click(null, null);
        }
Beispiel #7
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (_HTDataList.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataList, this.FormID);//绑定列				
                ProcessGrid.SetGridColumnUI(_HTDataList, this.FormListAID, this.FormListBID);//设置列UI
                this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);//绑定GridView1事件
                gridViewBindEventA1(_HTDataList);
                _HTDataList.RowCellStyle += new RowCellStyleEventHandler(_HTDataDts_RowCellStyle);
            }
            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);//绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID);//设置列UI
                //ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);---2010.8.5调整
                ProcessGrid.SetGridUIListDefault(_HTDataDtsAttach[i]);
            }

            ProcessGrid.SetGridReadOnly(_HTDataList, false);
            ProcessGrid.SetGridUIListDefault(_HTDataList);
            FCommon.AddDBLog(this.Text, "查询", " ", "");
            if (IsPostBack)
            {
                btnQuery_Click(null, null);
            }
        }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Data_Item";
            this.HTDataDts       = gridView2;
            //this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[2] { gridView1, gridView2 };
            HTDataAddFlag = false;
            ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI
            gridView1.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(frmAPBaseUIFormEdit_RowCellStyle);

            Common.BindVendorID(drpVendorID, true);

            //Common.BindMLDL(drpMLDLCode, true);     //绑定面料大类
            //Common.BindMLDL(drpMLDL, true);
            //Common.BindItemClass(drpItemClassID,(int)EnumItemType.面料,true);
            ////Common.BindItemType(drpItemTypeID, true);
            ////Common.BindNeedle(txtNeedle, true);

            //Common.BindCLS(drpItemUnit, "Data_Item", "ItemUnitFab", true);
            //Common.BindCLS(txtNeedle, "Enum_Needle", "Needle", true);
            //Common.BindSeason(txtSeason, true);

            //Common.BindMLLB(chkLamp1, true);


            SetTabIndex(0, groupControlMainten);

            txtItemCode.Properties.ReadOnly = true;

            //new ItemProcResLookUP(BaseFocusLabel, gridView2, new string[3] { "DtsItemCode", "DtsItemName", "DtsItemStd" }, drpDtsItemCode, txtDtsItemName, new int[] { (int)EnumItemType.纱线 }, "", "ItemStd", true, true);
            IniUCPicture();
            gridViewBaseRowChangedA2 += new gridViewBaseRowChangedA(gridViewRowChanged2);
            gridViewBindEventA2(gridView1);
        }
Beispiel #9
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
            //Common.BindOP(drpSaleOPID, true);
            this.HTDataTableName = "Sale_FHForm";
            this.HTDataList      = gridView1;

            this.HTQryContainer = groupControlQuery;

            if (ProductParamSet.GetIntValueByID(5020) == (int)YesOrNo.Yes)//组织结构体系启用
            {
                Common.BindOPID(drpSaleOPID, "Sale_SaleOrder", "SaleOPID", true);
            }
            else
            {
                Common.BindOPID(drpSaleOPID, true);
            }

            // Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            DevMethod.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);//2015.4.8 CX修改
            Common.BindFHType(drpFHTypeID, true);
            txtQMakeDateS.DateTime = DateTime.Now.AddDays(-10).Date;
            txtQMakeDateE.DateTime = DateTime.Now;
            if (FHFormStatusProc.ColorIniFlag)
            {
                //FHFormStatusProc.ColorIniTextBox(new TextBox[] { txtColorStatus1, txtColorStatus2});
                ucStatusBarStand1.UCValueIni(FHFormStatusProc.ColorStatusName, FHFormStatusProc.ColorStatusColor);
                ucStatusBarStand1.UCAct();
            }
        }
Beispiel #10
0
 private void frmWHfrmPayment_Load(object sender, EventArgs e)
 {
     Common.BindCLS(drpType, "Finance_PaymentHandle", "Type", true);
     BindGrid();
     ProcessGrid.BindGridColumn(gridView1, this.FormID);//绑定列
     ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);
     ProcessGrid.SetGridEdit(gridView1, new[] { "FormNo" }, false);
     dtGrid = (DataTable)gridView1.GridControl.DataSource;
 }
Beispiel #11
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
     ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
     Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
     new VendorProc(drpQVendorID);
     this.HTDataTableName   = "Buy_ItemBuyFollow";
     this.HTDataList        = gridView1;
     txtQMakeDateS.DateTime = DateTime.Now.AddMonths(-3).Date;
     txtQMakeDateE.DateTime = DateTime.Now;
     btnQuery_Click(null, null);
 }
Beispiel #12
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);
     ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);
     txtQMakeDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
     txtQMakeDateE.DateTime = DateTime.Now;
     Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     Common.BindOrderStatus(drpQStatus, true);
     this.HTDataTableName = "Sale_SaleOrder";
     this.HTDataList      = gridView1;
     btnQuery_Click(null, null);
 }
Beispiel #13
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);


            txtQIndateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtQIndateE.DateTime = DateTime.Now.Date;
            Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
            this.HTDataTableName = "Buy_ItemBuyForm";
            this.HTDataList      = gridView1;
        }
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
     ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
     //Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
     Common.BindDZType(drpDZType, true);
     this.HTDataTableName  = "Finance_CheckOperation";
     this.HTDataDts        = gridView1;
     this.HTCheckDataField = new string[] { "DLOADID", "DLOADSEQ", "DCheckQty" };//数据明细校验必须录入字段
     this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载数据", false, btnLoad_Click);
     Common.BindOP(drpSaleOPID, true);
     new VendorProc(drpVendorID);
 }
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);
     ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);
     txtQMakeDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
     txtQMakeDateE.DateTime = DateTime.Now;
     //Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
     this.HTDataTableName = "Finance_CheckOperation";
     this.HTDataList      = gridView1;
     Common.BindOP(drpSaleOPID, true);
     BindVendor();
     btnQuery_Click(null, null);
 }
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmWait_Load(object sender, EventArgs e)
        {
            try
            {
                ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI

                BindGrid();
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #17
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmWait_Load(object sender, EventArgs e)
        {
            try
            {
                ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI


                Common.BindBuyType(drpBuyType, true);
                BindGrid();
            }
            catch (Exception E)
            {
            }
        }
Beispiel #18
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
     ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
     Common.BindDZType(drpDZType, true);
     this.HTDataTableName  = "Finance_CheckOperation";
     this.HTDataDts        = gridView1;
     this.HTCheckDataField = new string[] { "DLOADID", "ItemCode" };//数据明细校验必须录入字段
     this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, btnLoad_Click);
     Common.BindOP(drpSaleOPID, true);
     Common.BindCheckMethodType(drpCheckMethodType, true);
     DevMethod.BindVendorByDZTypeID(drpVendorID, this.FormListAID, true);//2015.4.8 CX UPDATE
     txtMakeDate.DateTime = DateTime.Now.Date;
     Common.BindCLS(drpUnit, "Data_Item", "ItemUnitFab", true);
 }
Beispiel #19
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ScanInWH_Load(object sender, EventArgs e)
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI
            ProcessGrid.BindGridColumn(gridView2, this.FormID);                         //绑定列
            ProcessGrid.SetGridColumnUI(gridView2, this.FormListAID, this.FormListBID); //设置列UI
            ProcessGrid.BindGridColumn(gridView3, this.FormID);                         //绑定列
            ProcessGrid.SetGridColumnUI(gridView3, this.FormListAID, this.FormListBID); //设置列UI

            gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);
            gridViewBindEventA1(gridView2);
            gridView2.OptionsBehavior.ShowEditorOnMouseUp = false;
            BindScanISN();
            BindPack();
        }
Beispiel #20
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
            Common.BindDZType(drpDZType, true);
            Common.BindOP(drpSaleOPID, true);
            this.HTDataTableName = "Finance_InvoiceOperation";
            this.HTDataDts       = gridView1;

            this.HTCheckDataField = new string[] { "ItemCode" };//数据明细校验必须录入字段

            new VendorProc(drpVendorID);
            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, btnLoad_Click);

            drpDZType.Enabled = false;
        }
Beispiel #21
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "WO_Fabric";
            new ItemProcLookUp(drpItemCode, txtItemName, txtItemStd, txtItemModel, new int[] { (int)EnumItemType.面料 }, true, true);
            this.BaseToolBar.Visible = false;

            Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.全部 }, true); //客户

            ProcessGrid.BindGridColumn(gridView1, this.FormID);                                                 //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);                         //设置UI列
            this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);                  //绑定GridView1事件
            gridViewBindEventA1(gridView1);

            Common.BindFastReportList(drpReportItem, FormID, this.FormListAID);
            //
        }
Beispiel #22
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        private void frmVendorQuery_Load(object sender, System.EventArgs e)
        {
            try
            {
                ProcessGrid.BindGridColumn(gridView1, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID); //设置列UI
                ProcessGrid.SetGridReadOnly(gridView1, true);

                GetCondition();
                BindGrid();
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #23
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);
     ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);
     Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     new VendorProc(drpQVendorID);
     Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     new VendorProc(drpVendorID);
     Common.BindVendor(drpShopID, new int[] { (int)EnumVendorType.工厂 }, true);
     new VendorProc(drpShopID);
     Common.BindDOP(drpShopOPName, true);
     txtQMakeDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
     txtQMakeDateE.DateTime = DateTime.Now;
     this.HTDataTableName   = "Att_ProductCheck";//
     this.HTDataList        = gridView1;   
 }
Beispiel #24
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
     ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
     //  Common.BindOP(drpSaleOPID, true);
     this.HTDataTableName = "Sale_FHForm";
     this.HTDataList      = gridView1;
     //  Common.BindVendor(drpQVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     txtQInDateS.DateTime = DateTime.Now.AddMonths(-1).Date;
     txtQInDateE.DateTime = DateTime.Now;
     // drpQVendorID.EditValue = m_VendorID;
     if (m_NoLoadCondition != string.Empty)//如果有未加载语句则显示查询类型
     {
         drpQueryType.Visible = true;
     }
     btnQuery_Click(null, null);
 }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);
            Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
            new VendorProc(drpVendorID);
            Common.BindVendor(drpShopID, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpShopID);
            //Common.BindEnumUnit(txtUnit, true);

            Common.BindCLS(txtUnit, "Data_Item", "ItemUnitFab", true);
            Common.BindOP(drpCheckOPID, true);
            this.HTDataTableName  = "Att_ProductCheck";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemCode" };//数据明细校验必须录入字段
            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, btnLoad_Click);
        }
Beispiel #26
0
        /// <summary>
        /// 通用窗体加载方法,如果不要使用,则重写,一般不要修改
        /// </summary>
        public virtual void IniFormLoadBefore()
        {
            if (HTDataDts.Columns.Count != 0)
            {
                ProcessGrid.BindGridColumn(_HTDataDts, this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDts, this.FormListAID, this.FormListBID); //设置列UI
                //ProcessGrid.SetGridManDefault(_HTDataDts);
            }

            for (int i = 0; i < _HTDataDtsAttach.Length; i++)
            {
                ProcessGrid.BindGridColumn(_HTDataDtsAttach[i], this.FormID);                         //绑定列
                ProcessGrid.SetGridColumnUI(_HTDataDtsAttach[i], this.FormListAID, this.FormListBID); //设置列UI
                //ProcessGrid.SetGridManDefault(_HTDataDtsAttach[i]);
            }
            SetToolButtonVisible();
            btnQuery_Click(null, null);
        }
Beispiel #27
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        private void frmLoadItem_Load(object sender, System.EventArgs e)
        {
            try
            {
                ProcessTreeList.BindTreeColumn(treeList1, this.FormID);           //绑定列
                ProcessTreeList.SetTreeColumnUI(treeList1);                       //设置列UI

                ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
                ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI

                BindTreeList();
                BindGrid();
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #28
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Data_Item";
            this.HTDataList      = gridView1;

            txtQMakeDateE.DateTime = DateTime.Now.Date;
            txtQMakeDateS.DateTime = DateTime.Now.Date.AddDays(0 - ParamConfig.QueryDayNum);

            ProcessTreeList.BindTreeColumn(treeList1, this.FormID);                                       //绑定列
            ProcessTreeList.SetTreeColumnUI(treeList1);                                                   //设置列UI

            ProcessGrid.BindGridColumn(gridView1, this.FormID);                                           //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID);                             //设置列UI
            ProcessGrid.SetGridEdit(gridView1, new string[] { "ItemName", "ItemCode", "ItemStd" }, true); //临时让其处于可编辑状态


            Common.BindItemClass(drpQItemClass, this.FormListAID, true);
            BindTreeList();
        }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "Data_FlowerTypeContol";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ColorCode" };                              //数据明细校验必须录入字段

            ProcessGrid.BindGridColumn(gridView1, this.FormID);                                //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, this.FormListAID, this.FormListBID);        //设置UI列
            this.gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1); //绑定GridView1事件
            gridViewBindEventA1(gridView1);

            txtDHX.Enabled   = true;
            txtDMS.Enabled   = true;
            txtDJBBM.Enabled = true;
            txtDYS.Enabled   = true;
            txtDML.Enabled   = true;
            txtDSize.Enabled = true;
            txtJZ.Enabled    = true;
            SetTabIndex(0, groupControlMainten);
        }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            ProcessGrid.BindGridColumn(gridView1, this.FormID);               //绑定列
            ProcessGrid.SetGridColumnUI(gridView1, FormListAID, FormListBID); //设置列UI
            this.HTDataTableName  = "Buy_ItemBuyFollow";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ProcStepID", "CheckItem" };//数据明细校验必须录入字段
            Common.BindVendor(drpShopID, new int[] { (int)EnumVendorType.工厂 }, true);
            Common.BindCLS(txtPackReq, "Buy_ItemBuyFollow", "PackReq", true);
            new VendorProc(drpShopID);
            txtOrderFormNo.ToolTip = "请双击加载采购单";
            Common.BindFollow(drpFollow, true);


            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, txtOrderFormNo_DoubleClick);

            ParamSetRule psrule = new ParamSetRule();

            saveNoLoadCheckDayNum = psrule.RShowIntByCode((int)ParamSetEnum.未加载数据比对天数);
        }