Ejemplo n.º 1
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "WH_IOForm";
            this.HTDataList      = gridView1;
            //Common.BindVendor(drpVendorID, new int[] {(int)EnumVendorType.客户,(int)EnumVendorType.工厂 }, true);

            txtOrderDateS.DateTime = DateTime.Now.AddMonths(-1).Date;
            txtOrderDateE.DateTime = DateTime.Now.Date;
            Common.BindSubType(drpSubType, this.FormListAID, true);
            //Common.BindVendorByDZTypeID(drpVendorID, m_DZTypeID, true);//绑定客户
            //new VendorProc(drpVendorID);
            DevMethod.BindVendorByDZTypeID(drpVendorID, m_DZTypeID, true);//2015.4.8 CX UPDATE

            if (m_InvoiceFlag != 1)
            {
                chkDZDate.Visible  = false;
                txtDZDateS.Visible = false;
                lbDZ.Visible       = false;
                txtDZDateE.Visible = false;
            }

            txtDZDateS.DateTime = DateTime.Now.AddDays(-1).Date;
            txtDZDateE.DateTime = DateTime.Now.AddDays(1).Date;
            btnQuery_Click(null, null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 单据类型改变
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void drpSubType_EditValueChanged(object sender, EventArgs e)
 {
     try
     {
         txtFormNo_DoubleClick(null, null);
         DevMethod.BindVendorByFormListID(drpVendorID, SysConvert.ToInt32(drpSubType.EditValue), true);
         string    sql = "SELECT * FROM Enum_FormList WHERE ID=" + SysString.ToDBString(SysConvert.ToInt32(drpSubType.EditValue));
         DataTable dt  = SysUtils.Fill(sql);
         if (dt.Rows.Count != 0)
         {
             saveLoadFormType        = SysConvert.ToInt32(dt.Rows[0]["LoadFormTypeID"]);
             saveTHLoadFormListIDStr = SysConvert.ToString(dt.Rows[0]["THLoadFormListIDStr"]);
             string VendorCaption = dt.Rows[0]["VendorIDCaption"].ToString();
             if (VendorCaption != string.Empty)
             {
                 labVendorID.Text    = VendorCaption;
                 drpVendorID.ToolTip = VendorCaption;
             }
         }
         else
         {
             saveLoadFormType = 0;
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 初始化刷新数据(窗体加载时或用户刷新按钮时调用)
 /// </summary>
 public override void IniRefreshData()
 {
     DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);
     Common.BindPayMethod(drpPayMothodFlag, true);
     DevMethod.BindItem(drpItemCode, true);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 根据对账类型取得客户信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void drpDZType_EditValueChanged(object sender, EventArgs e)
        {
            try
            {
                if (SysConvert.ToInt32(drpDZType.EditValue) != 0)
                {
                    int DZType = SysConvert.ToInt32(drpDZType.EditValue);
                    //Common.BindVendorByDZTypeID(drpVendorID, DZType, true);
                    DevMethod.BindVendorByDZTypeID(drpVendorID, this.FormListAID, true);
                    //switch (DZType)
                    //{
                    //    case (int)EnumDZType.采购:
                    //        Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
                    //        lblVendor.Text = "供应商";
                    //        break;
                    //    case (int)EnumDZType.加工:
                    //        Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.工厂 }, true);
                    //        lblVendor.Text = "加工厂";
                    //        break;
                    //    case (int)EnumDZType.销售:
                    //        Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
                    //        lblVendor.Text = "客户";
                    //        break;

                    //}
                }
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Ejemplo n.º 6
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();
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Data_OP";
            SetPosCondition      = " AND ISNULL(DefaultFlag,0)=0 ";
            Common.BindCLS(txtSDuty, "Data_OP", "SDuty", true);
            Common.BindCLS(txtSDep, "Data_OP", "SDep", true);

            DevMethod.BindOPDep(drpDepID, true);
        }
Ejemplo n.º 8
0
 public override void IniRefreshData()
 {
     DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.供应商, (int)EnumVendorType.织厂, (int)EnumVendorType.染厂 }, true);
     drpSaleOPID.EditValue = FParamConfig.LoginID;
     DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);
     this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载", false, btnLoad_Click);
     drpCurrency.EditValue = "RMB";//币种默认人民币
     Common.BindCLS(drpType, "Finance_PaymentHandle", "Type", true);
 }
Ejemplo n.º 9
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName   = "WO_TowelProductionPlan";
            this.HTDataList        = gridView1;
            txtOrderDateS.DateTime = DateTime.Now.AddMonths(-1);
            txtOrderDateE.DateTime = DateTime.Now;

            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.内销客户 }, true);
        }
Ejemplo n.º 10
0
 public override void IniRefreshData()
 {
     Common.BindCLS(restxtunit, "Data_Item", "ItemUnitFab", true);
     Common.BindOP(drpSaleOPID, (int)EnumOPDep.业务部, true);
     Common.BindOP(drpGenDan, (int)EnumOPDep.生产部, true);
     DevMethod.BindVendor(drpFactoryID, (int)EnumVendorType.客户, true);                                         //客户
     DevMethod.BindVendor(drpFactoryID2, new int[] { (int)EnumVendorType.织厂, (int)EnumVendorType.供应商 }, true); //织造加工厂,供应商
     DevMethod.BindVendor(drpFactoryID3, (int)EnumVendorType.染厂, true);                                        //染厂
     Common.BindCLS(drpTecReq, "Dev_Sample", "TecReq", true);
     Common.BindSampleType(drpSampleType, true);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName  = "Sale_HandleEvent";
     this.HTDataList       = gridView1;
     txtMakeDateS.DateTime = DateTime.Now.Date.AddMonths(-1);
     txtMakeDateE.DateTime = DateTime.Now.Date;
     txtRDateS.DateTime    = DateTime.Now.Date.AddDays(10);
     txtRDateE.DateTime    = DateTime.Now.Date.AddDays(30);
     DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
     this.ToolBarItemAdd(29, ToolButtonName.btnLoad.ToString(), "保存状态", false, btnSaveStatus_Click);
 }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "WO_TowelProductionPlan";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemCode" };//数据明细校验必须录入字段

            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.内销客户 }, true);
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);


            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载订单", false, btnLoadSO_Click);
        }
Ejemplo n.º 13
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "WO_TowelProduction";
            //

            txtFormDate.DateTime = DateTime.Now;
            txtMakeDate.DateTime = DateTime.Now;
            txtMakeOPName.Text   = FParamConfig.LoginName;

            Common.BindWOTypeType(drpWOTypeID, true);
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.生产部 }, true);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Att_VendorTrackRecord";



            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);

            Common.BindCLS(drpTrackType, "Att_VendorTrackRecord", "TrackType", true);

            //
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Finance_FQC";
            this.HTDataList      = gridView1;
            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            //new VendorProc(drpVendorID);

            txtQMakeDateS.DateTime = DateTime.Now.AddMonths(-3).Date;
            txtQMakeDateE.DateTime = DateTime.Now.Date;

            btnQuery_Click(null, null);
        }
Ejemplo n.º 16
0
 /// <summary>
 /// 窗体加载
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmWait_Load(object sender, EventArgs e)
 {
     try
     {
         DevMethod.BindVendor(drpWLVendorID, new int[] { (int)EnumVendorType.物流公司 }, true);
         drpWLVendorID.EditValue = m_WLVendorID;
         txtWLFormNo.Text        = m_WLFormNo;
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Ejemplo n.º 17
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "CaiWu_CWPay";
            this.HTDataList      = gridView1;

            DevMethod.BindVendorByDZTypeID(drpQVendorID, this.FormListAID, true);
            //new VendorProc(drpQVendorID);

            btnPrintVisible = true;


            //IsPostBack = false;
        }
Ejemplo n.º 18
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Finance_CheckOperation";
            this.HTDataList      = gridView1;
            //Common.BindVendor(drpVendorID, new int[] {(int)EnumVendorType.客户,(int)EnumVendorType.工厂 }, true);
            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.工厂 }, true);
            txtOrderDateS.DateTime = DateTime.Now.AddDays(-1).Date;
            txtOrderDateE.DateTime = DateTime.Now.Date;
            Common.BindSubType(drpSubType, this.FormListAID, true);



            btnQuery_Click(null, null);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Finance_InvoiceOperation";
            this.HTDataList      = gridView1;

            txtQMakeDateS.DateTime = SysConvert.ToDateTime(DateTime.Now.Year.ToString() + "-01-01");
            txtQMakeDateE.DateTime = DateTime.Now.Date;
            Common.BindOP(drpSaleOPID, true);
            Common.BindKPType(drpKPType, true);

            //Common.BindVendorByDZTypeID(drpQVendorID, this.FormListAID, true);
            //new VendorProc(drpQVendorID);
            DevMethod.BindVendorByDZTypeID(drpQVendorID, this.FormListAID, true);//2015.4.8 CX UPDATE
        }
Ejemplo n.º 20
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "WO_ProductionPlan";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemModel" };//数据明细校验必须录入字段

            this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[] { gridView2 };
            // this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载大货指示样", false, btnSampleLoad_Click);
            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载合同", false, btnSOLoad_Click);
            DevMethod.BindVendor(drpFactoryID1, new int[] { (int)EnumVendorType.织厂, (int)EnumVendorType.供应商 }, true); //织造加工厂,供应商
            DevMethod.BindVendor(drpFactoryID2, (int)EnumVendorType.染厂, true);                                        //染厂
            Common.BindOP(drpGenDan, (int)EnumOPDep.生产部, true);
            Common.BindOP(drpSaleOPID, (int)EnumOPDep.业务部, true);
        }
Ejemplo n.º 21
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);
 }
Ejemplo n.º 22
0
 /// <summary>
 /// 根据对账类型取得客户信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void drpDZType_EditValueChanged(object sender, EventArgs e)
 {
     try
     {
         if (SysConvert.ToInt32(drpDZType.EditValue) != 0)
         {
             int DZType = SysConvert.ToInt32(drpDZType.EditValue);
             DevMethod.BindVendorByDZTypeID(drpVendorID, this.FormListAID, true);
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Ejemplo n.º 23
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "WH_IOForm";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemCode" };//数据明细校验必须录入字段 ,"Qty", "SectionID"
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部, (int)EnumOPDep.仓库 }, true);
            Common.BindWHByFormList(drpWH, this.FormListAID, true);
            Common.BindCLS(restxtGoodsLevel, "WH_IOFormDts", "GoodsLevel", true);
            Common.BindSubType(drpSubType, this.FormListAID, true);             //入库类型绑定
            ParamSetRule psrule = new ParamSetRule();

            Common.BindCLS(RestxtUnit, "Data_Item", "ItemUnitFab", true);
            gridViewBaseRowChangedA2 += new gridViewBaseRowChangedA(gridViewRowChanged2);
            gridViewBindEventA2(gridView1);
            this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "加载单据", false, btnLoad_Click);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName   = "WH_IOForm";
            this.HTDataList        = gridView1;
            this.HTQryContainer    = groupControlQuery;
            txtQFormDateS.DateTime = DateTime.Now.AddMonths(-1).Date;
            txtQFormDateE.DateTime = DateTime.Now.Date;
            Common.BindSubType(drpSubType, this.FormListAID, true);

            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.工厂 }, true);
            //new VendorProc(drpVendorID);



            this.ToolBarItemAdd(32, "btnScanOutWH", "扫描出库", true, btnScanOutWH_Click, eShortcut.F9);
        }
Ejemplo n.º 25
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "CaiWu_CWPay";
            this.HTDataList      = gridView1;

            DevMethod.BindVendor(drpQVendorID, new int[] { 14 }, true);
            //new VendorProc(drpQVendorID);

            btnPrintVisible      = true;
            txtQIndateS.DateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            txtQIndateE.DateTime = DateTime.Now.Date;
            work                     = new BackgroundWorker();
            work.DoWork             += new DoWorkEventHandler(work_DoWork);
            work.RunWorkerCompleted += new RunWorkerCompletedEventHandler(work_RunWorkerCompleted);

            this.IsPostBack = false;
        }
Ejemplo n.º 26
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Data_Item";
            this.HTDataDts       = gridView3;
            this.HTDataDtsAttach = new DevExpress.XtraGrid.Views.Grid.GridView[] { gridView1, gridView2, gridView4, gridView5 };
            Common.BindVendorID(drpVendorID, true);


            if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(5010)))//面料定义界面不要显示原料信息管理内容
            {
                xtraTabPage2.PageVisible = false;
            }
            if (ProductParamSet.GetIntValueByID(8021) == 1)
            {
                groupControlPBInfo.Visible = true;
            }
            else
            {
                groupControlPBInfo.Visible = false;
            }

            DevMethod.BindItemBCP(drpItemCode, 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);

            //  this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "信息同步", false, btnLoad_Click);
            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);
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Finance_CostRecord";
            //

            //string ConditionV = string.Empty;
            //if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(5430)) && !FParamConfig.LoginHTFlag)//销售订单业务员只查看自己的的订单
            //{
            //    ConditionV = " AND ID IN(Select MainID from Data_VendorSaleOP where OPID in(" + WCommon.GetStructureMemberOPStr() + "))";
            //}
            //Common.BindVendor2(drpVendorID, new int[] { (int)EnumVendorType.客户 }, ConditionV, true);


            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户, (int)EnumVendorType.供应商, (int)EnumVendorType.织厂, (int)EnumVendorType.染厂, (int)EnumVendorType.其他加工厂 }, true);
            //new VendorProc(drpVendorID);

            Common.BindCLS(drpCostType, "Finance_CostRecord", "CostType", true);//费用类型
        }
Ejemplo n.º 28
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "Sale_SampleSale";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemCode", "Unit" };//数据明细校验必须录入字段
            //  this.ToolBarItemAdd(28, ToolButtonName.btnLoad.ToString(), "面料信息", false, btnLoad_Click);
            Common.BindSampleType(drpSampleType, true);

            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            //Common.BindVendorID(drpVendorID, true);
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);
            Common.BindOP(drpMakeOPID, true);
            Common.BindCLS(txtPickUp, "Sale_SampleSale", "PickUp", true);
            gridViewBaseRowChangedA1 += new gridViewBaseRowChangedA(gridViewRowChanged1);//绑定GridView1事件
            gridViewBindEventA1(gridView1);

            Common.BindCLS(restxtunit, "Data_Item", "ItemUnitFab", true);
        }
Ejemplo n.º 29
0
        public override void IniRefreshData()
        {
            Common.BindVendor(drpCheckComID, new int[] { (int)EnumVendorType.检测机构 }, true);

            Common.BindVendor(drpYCheckComID, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpYCheckComID);
            Common.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpVendorID);

            Common.BindVendor(drpVendorID2, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpVendorID2);

            Common.BindVendor(drpVendorID3, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpVendorID3);

            Common.BindVendor(drpVendorID4, new int[] { (int)EnumVendorType.客户 }, true);
            new VendorProc(drpVendorID4);
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);
        }
Ejemplo n.º 30
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "UV1_Finance_CostRecord";
            this.HTDataList      = gridView1;


            string ConditionV = string.Empty;

            if (SysConvert.ToBoolean(ProductParamSet.GetIntValueByID(5430)) && !FParamConfig.LoginHTFlag)//销售订单业务员只查看自己的的订单
            {
                ConditionV = " AND ID IN(Select MainID from Data_VendorSaleOP where OPID in(" + WCommon.GetStructureMemberOPStr() + "))";
            }
            DevMethod.BindVendor(drpVendorID, new int[] { (int)EnumVendorType.客户 }, ConditionV, true);



            txtFormDateS.DateTime = DateTime.Now.AddMonths(-1).Date;
            txtFormDateE.DateTime = DateTime.Now.Date;
        }