Exemple #1
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);
 }
Exemple #2
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);
 }
Exemple #3
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);
        }
        /// <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);
        }
Exemple #5
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);
        }
Exemple #6
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);
        }
Exemple #7
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);
        }
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName  = "WH_IOForm";
            this.HTDataDts        = gridView1;
            this.HTCheckDataField = new string[] { "ItemCode" };//数据明细校验必须录入字段 ,"Qty"
            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);
            Common.BindWHByFormList(drpWH, this.FormListAID, true);
            Common.BindCLS(restxtGoodsLevel, "WH_IOFormDts", "GoodsLevel", true);
            Common.BindSubType(drpSubType, this.FormListAID, true);
            Common.BindCLS(RestxtUnit, "Data_Item", "ItemUnitFab", true);
            ParamSetRule psrule = new ParamSetRule();

            //saveNoLoadCheckDayNum = psrule.RShowIntByCode((int)ParamSetEnum.未加载数据比对天数);
            //this.ToolBarItemAdd(28, "btnLoadStorge", "加载库存", false, btnLoadStorge_Click);
            this.ToolBarItemAdd(29, ToolButtonName.btnLoad.ToString(), "加载单据", false, btnLoad_Click);
            //this.ToolBarItemAdd(28, "btnUpdateAmount", "修改单价", false, btnUpdateAmount_Click);
            gridViewBaseRowChangedA2 += new gridViewBaseRowChangedA(gridViewRowChanged2);
            gridViewBindEventA2(gridView1);
        }
Exemple #9
0
        /// <summary>
        /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
        /// </summary>
        public override void IniData()
        {
            this.HTDataTableName = "Sale_SaleOrder";
            this.HTDataList      = gridView1;

            this.HTQryContainer = groupControlQuery;

            Common.BindOrderType(drpOrderTypeID, true);
            Common.BindOrderLevel(drpOrderLevelID, true);

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

            DevMethod.BindOP(drpSaleOPID, new int[] { (int)EnumOPDep.业务部 }, true);

            txtOrderDateS.DateTime = DateTime.Now.AddMonths(-2).Date;
            txtOrderDateE.DateTime = DateTime.Now.Date;
            txtReqDateS.DateTime   = DateTime.Now.AddMonths(-2).Date;
            txtReqDateE.DateTime   = DateTime.Now.Date;
            txtMakeDateS.DateTime  = DateTime.Now.AddMonths(-2).Date;
            txtMakeDateE.DateTime  = DateTime.Now.Date;
            this.ToolBarItemAdd(32, "btnUpdateOrderStep", "修改合同站别", true, UpdateOrderStepToolStripMenuItem_Click, eShortcut.None);
            this.ToolBarItemAdd(32, "btnUpdateOrderStatus", "修改合同状态", true, UpdateOrderStatusToolStripMenuItem_Click, eShortcut.None);
            this.ToolBarItemAdd(32, "btnCancelOrder", "撤单", true, btnCancelOrder_Click, eShortcut.None);
            this.ToolBarItemAdd(32, "btnCancelCancelOrder_Click", "取消撤单", true, btnCancelCancelOrder_Click, eShortcut.None);

            if (ProductParamSet.GetIntValueByID(5417) == (int)YesOrNo.Yes)//组织结构体系启用
            {
                chkNoShow.Visible    = true;
                chkNoShow.Checked    = true;
                chkOrderDate.Checked = false;
            }
            //this.ToolBarItemAdd(32, "btnSOProcess", "订单进度", true, btnSOProcess_Click, eShortcut.None);
            //Common.BindVendor(drpVendorID, new int[] {(int)EnumVendorType.客户 }, true);
            //new VendorProc(drpVendorID);

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

            if (SaleOrderStepProc.ColorIniFlag)
            {
                ucStatusBarStand1.UCDataSource = SaleOrderStepProc.ColorStatusDt;
                ucStatusBarStand1.UCAct();
            }

            if (SaleOrderStatusProc.ColorIniFlag)
            {
                ucStatusBarStand2.UCDataSource = SaleOrderStatusProc.ColorStatusDt;
                ucStatusBarStand2.UCAct();
            }
            //if (FCommon.RightCheck(this.FormID, this.RightFormID, this.FormListAID, this.FormListBID, RightSub.审核3))
            //{
            //    lbItemVendorID.Visible = true;
            //    txtItemVendorID.Visible = true;
            //}
            //else
            //{
            //    lbItemVendorID.Visible = false;
            //    txtItemVendorID.Visible = false;
            //}

            //if (FCommon.RightCheck(this.FormID, this.RightFormID, this.FormListAID, this.FormListBID, RightSub.权限7))
            //{
            //    lbVendor.Visible = true;
            //    drpSaleOPID.Visible = true;
            //}
            //else
            //{
            //    lbVendor.Visible = false;
            //    drpSaleOPID.Visible = false;
            //}
        }