public UCSaleOrderViewSearch(string sale_order_id, string order_status, UCSaleOrderManagerSearch uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSave.Visible = true;
            this.SaleorderId = sale_order_id;
            this.uc = uc;

            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(sale_order_id);
            GetAccessories(sale_order_id);
        }
Ejemplo n.º 2
0
        /// <summary> 窗体初始化
        /// </summary>
        /// <param name="sale_order_id"></param>
        /// <param name="order_status"></param>
        /// <param name="uc"></param>
        public UCSaleOrderViewSearch(string sale_order_id, string order_status, UCSaleOrderManagerSearch uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSave.Visible = true;
            this.SaleorderId     = sale_order_id;
            this.uc = uc;

            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(sale_order_id);
            GetAccessories(sale_order_id);
        }