Ejemplo n.º 1
0
        public UCPurchaseOrderView(string order_id,string order_status,UCPurchaseOrderManager uc)
        {
            InitializeComponent();
            this.uc = uc;
            this.orderId = order_id;
            base.SetBaseButtonStatus();
            if (uc != null)
            {
                base.SetButtonVisiableView();
                base.btnSave.Visible = true;
            }

            string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName);

            //当采购订单状态是已审核时才可以中止,否则不可以中止
            DataSources.EnumAuditStatus enumDataSources = (DataSources.EnumAuditStatus)Convert.ToInt16(order_status);
            if (enumDataSources != DataSources.EnumAuditStatus.AUDIT)
            {
                chkis_suspend.Enabled = false;
                is_suspend.ReadOnly = true;
            }
            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(order_id);
            GetAccessories(order_id);
            base.SaveEvent += new ClickHandler(UCPurchaseOrderView_SaveEvent);
            base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent);
        }
Ejemplo n.º 2
0
        public UCPurchaseOrderView(string order_id, string order_status, UCPurchaseOrderManager uc)
        {
            InitializeComponent();
            this.uc      = uc;
            this.orderId = order_id;
            base.SetBaseButtonStatus();
            if (uc != null)
            {
                base.SetButtonVisiableView();
                base.btnSave.Visible = true;
            }

            string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName);

            //当采购订单状态是已审核时才可以中止,否则不可以中止
            DataSources.EnumAuditStatus enumDataSources = (DataSources.EnumAuditStatus)Convert.ToInt16(order_status);
            if (enumDataSources != DataSources.EnumAuditStatus.AUDIT)
            {
                chkis_suspend.Enabled = false;
                is_suspend.ReadOnly   = true;
            }
            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(order_id);
            GetAccessories(order_id);
            base.SaveEvent += new ClickHandler(UCPurchaseOrderView_SaveEvent);
            base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent);
        }
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="status"></param>
        /// <param name="order_id"></param>
        /// <param name="uc"></param>
        public UCPurchaseOrderAddOrEdit(WindowStatus status, string order_id, UCPurchaseOrderManager uc)
        {
            InitializeComponent();
            this.uc = uc;
            this.status = status;
            this.order_id = order_id;
            base.SaveEvent += new ClickHandler(UCPurchaseOrderAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCPurchaseOrderAddOrEdit_SubmitEvent);
            base.ImportEvent += new ClickHandler(UCPurchaseOrderManager_ImportEvent);
            gvPurchaseList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchaseList_CellDoubleClick);

            business_counts.ValueType = typeof(decimal);
            business_counts.MaxInputLength = 9;
            original_price.ValueType = typeof(decimal);
            original_price.MaxInputLength = 9;
            discount.ValueType = typeof(decimal);
            discount.MaxInputLength = 3;
            business_price.ValueType = typeof(decimal);
            business_price.MaxInputLength = 9;
            tax_rate.ValueType = typeof(decimal);
            tax_rate.MaxInputLength = 3;

            txtcontract_no.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtcontract_no_UserControlValueChanged);
            txtprepaid_money.UserControlValueChanged += new TextBoxEx.TextBoxChangedHandle(txtprepaid_money_UserControlValueChanged);
            ddtarrival_date.ValueChanged += new EventHandler(ddtarrival_date_ValueChanged);
        }
 /// <summary>
 /// 初始化窗体
 /// </summary>
 /// <param name="status"></param>
 /// <param name="order_id"></param>
 /// <param name="uc"></param>
 public UCPurchaseOrderAddOrEdit(WindowStatus status, string order_id, UCPurchaseOrderManager uc)
 {
     InitializeComponent();
     this.uc = uc;
     this.status = status;
     this.order_id = order_id;
     base.SaveEvent += new ClickHandler(UCPurchaseOrderAddOrEdit_SaveEvent);
     base.SubmitEvent += new ClickHandler(UCPurchaseOrderAddOrEdit_SubmitEvent);
     base.ImportEvent += new ClickHandler(UCPurchaseOrderManager_ImportEvent);
 }
Ejemplo n.º 5
0
 private void picJxdd_Click(object sender, EventArgs e)
 {
     UCPurchaseOrderManager ucItem = new UCPurchaseOrderManager();
     string tag = "UCPurchaseOrderManager|UCPurchaseOrderManager_001|UCPurchaseOrderManager_002";
     UCBase.AddUserControl(ucItem, "进货订单", "UCPurchaseOrderManager", tag, "UCPurchaseOrderManager");
 }
Ejemplo n.º 6
0
 private void picJxdd_Click(object sender, EventArgs e)
 {
     UCPurchaseOrderManager uc = new UCPurchaseOrderManager();
     string tag = "CL_AccessoriesBusiness|CL_PurchaseManagement_Function|CL_PurchaseOrder_Function";
     UCBase.AddUserControl(uc, "采购订单", "CL_PurchaseOrder_Function", tag, "");
 }