Esempio n. 1
0
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="status"></param>
        /// <param name="purchase_order_yt_id"></param>
        /// <param name="uc"></param>
        public UCYTAddOrEdit(WindowStatus status, string purchase_order_yt_id, UCYTManager uc)
        {
            InitializeComponent();

            this.uc = uc;
            this.status = status;
            this.purchase_order_yt_id = purchase_order_yt_id;

            base.SaveEvent += new ClickHandler(UCYTAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCYTAddOrEdit_SubmitEvent);
            base.ImportEvent += new ClickHandler(UCYTAddOrEdit_ImportEvent);
        }
Esempio n. 2
0
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="status"></param>
        /// <param name="purchase_order_yt_id"></param>
        /// <param name="uc"></param>
        public UCYTAddOrEdit(WindowStatus status, string purchase_order_yt_id, UCYTManager uc)
        {
            InitializeComponent();

            this.uc = uc;
            this.status = status;
            this.purchase_order_yt_id = purchase_order_yt_id;
            base.SaveEvent += new ClickHandler(UCYTAddOrEdit_SaveEvent);
            base.SubmitEvent += new ClickHandler(UCYTAddOrEdit_SubmitEvent);
            base.ImportEvent += new ClickHandler(UCYTAddOrEdit_ImportEvent);
            gvPurchaseList.CellDoubleClick += new DataGridViewCellEventHandler(gvPurchaseList_CellDoubleClick);

            application_count.ValueType = typeof(decimal);
            application_count.MaxInputLength = 9;
            conf_count.ValueType = typeof(decimal);
            conf_count.MaxInputLength = 9;
        }
Esempio n. 3
0
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="purchase_order_yt_id"></param>
        /// <param name="uc"></param>
        public UCYTView(string purchase_order_yt_id, UCYTManager uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSync.Visible = true;
            this.uc = uc;
            this.purchase_order_yt_id = purchase_order_yt_id;
            base.SyncEvent += new ClickHandler(UCYTView_SyncEvent);

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

            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(purchase_order_yt_id);
            GetAccessories(purchase_order_yt_id);
            //动态创建三种订单的panel区域
            LoadAllOrderTypeInfo();
        }
Esempio n. 4
0
        /// <summary> 初始化窗体
        /// </summary>
        /// <param name="purchase_order_yt_id"></param>
        /// <param name="uc"></param>
        public UCYTView(string purchase_order_yt_id, UCYTManager uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSync.Visible = true;
            this.uc = uc;
            this.purchase_order_yt_id = purchase_order_yt_id;
            base.SyncEvent           += new ClickHandler(UCYTView_SyncEvent);

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

            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(purchase_order_yt_id);
            GetAccessories(purchase_order_yt_id);
            //动态创建三种订单的panel区域
            LoadAllOrderTypeInfo();
        }
Esempio n. 5
0
 private void picYtcgdd_Click(object sender, EventArgs e)
 {
     UCYTManager uc = new UCYTManager();
     string tag = "CL_AccessoriesBusiness|CL_PurchaseManagement_Function|CL_YTPurchaseOrder_Function";
     UCBase.AddUserControl(uc, "宇通采购订单", "CL_YTPurchaseOrder_Function", tag, "");
 }