Пример #1
0
        /// <summary>
        /// 初始化出入单窗体信息
        /// </summary>
        public UCRequisitionAddOrEdit(WindowStatus state, string AllotBillId, UCRequisitionManager UCReqManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();                     //获取当前系统时间
            this.UCReqBM           = UCReqManager;                                         //获取出入库单管理类
            this.status            = state;                                                //获取操作状态
            this.AllotId           = AllotBillId;                                          //出入库单ID
            base.SaveEvent        += new ClickHandler(UCRequisitionAddOrEdit_SaveEvent);   //保存
            base.DeleteEvent      += new ClickHandler(UCRequisitionAddOrEdit_DeleteEvent);
            base.SubmitEvent      += new ClickHandler(UCRequisitionAddOrEdit_SubmitEvent); //提交
            base.ImportEvent      += new ClickHandler(UCRequisitionAddOrEdit_ImportEvent); //导入
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != partcounts.Name && dgCol.Name != callinprice.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;
        }
 /// <summary>
 /// 初始化出入单窗体信息
 /// </summary>
 public UCRequisitionAddOrEdit(WindowStatus state, string AllotBillId, UCRequisitionManager UCReqManager)
 {
     InitializeComponent();
     gvPartsMsgList.ReadOnly = false;
     ID.ReadOnly = true;
     partsnum.ReadOnly = true;
     partname.ReadOnly = true;
     PartSpec.ReadOnly = true;
     drawingnum.ReadOnly = true;
     partbrand.ReadOnly = true;
     carpartscode.ReadOnly = true;
     partsbarcode.ReadOnly = true;
     totalmoney.ReadOnly = true;
     makedate.ReadOnly = true;
     validitydate.ReadOnly = true;
     DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
     this.UCReqBM = UCReqManager;//获取出入库单管理类
     this.status = state;//获取操作状态
     this.AllotId = AllotBillId;//出入库单ID
     base.SaveEvent += new ClickHandler(UCRequisitionAddOrEdit_SaveEvent);//保存
     base.SubmitEvent += new ClickHandler(UCRequisitionAddOrEdit_SubmitEvent);//提交
     base.ImportEvent += new ClickHandler(UCRequisitionAddOrEdit_ImportEvent);//导入
     base.btnExport.Enabled = false;
     base.btnConfirm.Enabled = false;
     base.btnEdit.Enabled = false;
     base.btnBalance.Enabled = false;
     base.btnPrint.Enabled = false;
 }
Пример #3
0
 /// <summary>
 /// 初始化出入单窗体信息
 /// </summary>
 public UCRequisitionAddOrEdit(WindowStatus state, string AllotBillId, UCRequisitionManager UCReqManager)
 {
     InitializeComponent();
     gvPartsMsgList.ReadOnly = false;
     ID.ReadOnly             = true;
     partsnum.ReadOnly       = true;
     partname.ReadOnly       = true;
     PartSpec.ReadOnly       = true;
     drawingnum.ReadOnly     = true;
     partbrand.ReadOnly      = true;
     carpartscode.ReadOnly   = true;
     partsbarcode.ReadOnly   = true;
     totalmoney.ReadOnly     = true;
     makedate.ReadOnly       = true;
     validitydate.ReadOnly   = true;
     DTPickorder_date.Value  = DateTime.Now.ToShortDateString();                     //获取当前系统时间
     this.UCReqBM            = UCReqManager;                                         //获取出入库单管理类
     this.status             = state;                                                //获取操作状态
     this.AllotId            = AllotBillId;                                          //出入库单ID
     base.SaveEvent         += new ClickHandler(UCRequisitionAddOrEdit_SaveEvent);   //保存
     base.SubmitEvent       += new ClickHandler(UCRequisitionAddOrEdit_SubmitEvent); //提交
     base.ImportEvent       += new ClickHandler(UCRequisitionAddOrEdit_ImportEvent); //导入
     base.btnExport.Enabled  = false;
     base.btnConfirm.Enabled = false;
     base.btnEdit.Enabled    = false;
     base.btnBalance.Enabled = false;
     base.btnPrint.Enabled   = false;
 }
        /// <summary>
        /// 初始化出入单窗体信息
        /// </summary>
        public UCRequisitionAddOrEdit(WindowStatus state, string AllotBillId, UCRequisitionManager UCReqManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCReqBM = UCReqManager;//获取出入库单管理类
            this.status = state;//获取操作状态
            this.AllotId = AllotBillId;//出入库单ID
            base.SaveEvent += new ClickHandler(UCRequisitionAddOrEdit_SaveEvent);//保存
            base.DeleteEvent += new ClickHandler(UCRequisitionAddOrEdit_DeleteEvent);
            base.SubmitEvent += new ClickHandler(UCRequisitionAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCRequisitionAddOrEdit_ImportEvent);//导入
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != partcounts.Name && dgCol.Name != callinprice.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;
            partcounts.ValueType = typeof(decimal);
            callinprice.ValueType = typeof(decimal);
        }
Пример #5
0
 private void picDpd_Click(object sender, EventArgs e)
 {
     UCRequisitionManager uc = new UCRequisitionManager();
     string tag = "CL_AccessoriesBusiness|CL_StockManagement_Function|CL_RequisitionBill_Function";
     UCBase.AddUserControl(uc, "调拨单", "CL_RequisitionBill_Function", tag, "");
 }