public UCModifyPriceAddOrEdit(WindowStatus state, string ModPricId, UCModifyPriceManager UCModManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCModifyPriceBM = UCModManager;//获取其它收货单管理类
            this.status = state;//获取操作状态
            this.ModifyPriceId = ModPricId;//其它收货单ID
            base.SaveEvent += new ClickHandler(UCModifyPriceAddOrEdit_SaveEvent);//保存
            base.SubmitEvent += new ClickHandler(UCModifyPriceAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCModifyPriceAddOrEdit_ImportEvent);//导入
            base.DeleteEvent += new ClickHandler(UCModifyPriceAddOrEdit_DeleteEvent);
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != ModyPricRate.Name
                    &&dgCol.Name != ModyAfterPric.Name && dgCol.Name!=remarks.Name) dgCol.ReadOnly = true;
            }

            base.btnExport.Visible = false;
            base.btnConfirm.Visible = false;
            base.btnEdit.Visible = false;
            base.btnBalance.Visible = false;
            base.btnPrint.Visible = false;
            base.btnExport.Visible = false;

        }
Beispiel #2
0
        public UCModifyPriceAddOrEdit(WindowStatus state, string ModPricId, UCModifyPriceManager UCModManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();                     //获取当前系统时间
            this.UCModifyPriceBM   = UCModManager;                                         //获取其它收货单管理类
            this.status            = state;                                                //获取操作状态
            this.ModifyPriceId     = ModPricId;                                            //其它收货单ID
            base.SaveEvent        += new ClickHandler(UCModifyPriceAddOrEdit_SaveEvent);   //保存
            base.SubmitEvent      += new ClickHandler(UCModifyPriceAddOrEdit_SubmitEvent); //提交
            base.ImportEvent      += new ClickHandler(UCModifyPriceAddOrEdit_ImportEvent); //导入
            base.DeleteEvent      += new ClickHandler(UCModifyPriceAddOrEdit_DeleteEvent);
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != ModyPricRate.Name &&
                    dgCol.Name != ModyAfterPric.Name && dgCol.Name != remarks.Name)
                {
                    dgCol.ReadOnly = true;
                }
            }

            base.btnExport.Visible  = false;
            base.btnConfirm.Visible = false;
            base.btnEdit.Visible    = false;
            base.btnBalance.Visible = false;
            base.btnPrint.Visible   = false;
            base.btnExport.Visible  = false;
        }
Beispiel #3
0
 public UCModifyPriceAddOrEdit(WindowStatus state, string ModPricId, UCModifyPriceManager UCModManager)
 {
     InitializeComponent();
     DTPickorder_date.Value  = DateTime.Now.ToShortDateString();                     //获取当前系统时间
     this.UCModifyPriceBM    = UCModManager;                                         //获取其它收货单管理类
     this.status             = state;                                                //获取操作状态
     this.ModifyPriceId      = ModPricId;                                            //其它收货单ID
     base.SaveEvent         += new ClickHandler(UCModifyPriceAddOrEdit_SaveEvent);   //保存
     base.SubmitEvent       += new ClickHandler(UCModifyPriceAddOrEdit_SubmitEvent); //提交
     base.ImportEvent       += new ClickHandler(UCModifyPriceAddOrEdit_ImportEvent); //导入
     gvPartsMsgList.ReadOnly = false;
     ID.ReadOnly             = true;
     partsnum.ReadOnly       = true;
     partname.ReadOnly       = true;
     PartSpec.ReadOnly       = true;
     drawingnum.ReadOnly     = true;
     unitname.ReadOnly       = true;
     partbrand.ReadOnly      = true;
     CarFactoryCode.ReadOnly = true;
     BarCode.ReadOnly        = true;
     ModyUnitprice.ReadOnly  = true;
     Calcmoney.ReadOnly      = true;
     base.btnExport.Enabled  = false;
     base.btnConfirm.Enabled = false;
     base.btnEdit.Enabled    = false;
     base.btnBalance.Enabled = false;
     base.btnPrint.Enabled   = false;
 }
        public UCModifyPriceAddOrEdit(WindowStatus state, string ModPricId, UCModifyPriceManager UCModManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCModifyPriceBM = UCModManager;//获取其它收货单管理类
            this.status = state;//获取操作状态
            this.ModifyPriceId = ModPricId;//其它收货单ID
            base.SaveEvent += new ClickHandler(UCModifyPriceAddOrEdit_SaveEvent);//保存
            base.SubmitEvent += new ClickHandler(UCModifyPriceAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCModifyPriceAddOrEdit_ImportEvent);//导入
            gvPartsMsgList.ReadOnly = false;
            ID.ReadOnly = true;
            partsnum.ReadOnly = true;
            partname.ReadOnly = true;
            PartSpec.ReadOnly = true;
            drawingnum.ReadOnly = true;
            unitname.ReadOnly = true;
            partbrand.ReadOnly = true;
            CarFactoryCode.ReadOnly = true;
            BarCode.ReadOnly = true;
            ModyUnitprice.ReadOnly = true;
            Calcmoney.ReadOnly = true;
            base.btnExport.Enabled = false;
            base.btnConfirm.Enabled = false;
            base.btnEdit.Enabled = false;
            base.btnBalance.Enabled = false;
            base.btnPrint.Enabled = false;

        }