Example #1
0
        /// <summary> 加载窗体
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSaleOrderManager_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManager();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //列表的右键操作功能
            base.SetContentMenuScrip(gvPurchaseOrderList);
            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;

            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
            CommonFuncCall.BindOrderStatus(ddlState, true);
            BindgvSaleOrderList();

            Choosefrm.CusNameChoose(txtcus_name, Choosefrm.delDataBack = null);
        }
Example #2
0
        /// <summary>
        /// 窗体加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSalePlanManager_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvSalePlanList, NotReadOnlyColumnsName);

            base.SetContentMenuScrip(gvSalePlanList);
            base.ClearAllToolStripItem();
            base.AddToolStripItem(base.btnExport);
            base.AddToolStripItem(base.btnView);
            base.AddToolStripItem(base.btnSet);
            base.AddToolStripItem(base.btnPrint);

            //禁止列表自增列
            gvSalePlanList.AutoGenerateColumns = false;
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式

            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;

            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvSalePlanList();
        }
Example #3
0
        /// <summary> 窗体初始化
        /// </summary>
        public UCChoosePurchaseBill(string order_type, string sup_id)
        {
            InitializeComponent();
            dgAccessoriesDetail.CellFormatting += new DataGridViewCellFormattingEventHandler(dgAccessoriesDetail_CellFormatting);

            this.order_type = order_type;
            this.sup_id     = sup_id;

            string[] NotReadOnlyColumnsName1 = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(dgPurchaseOrder, NotReadOnlyColumnsName1);
            string[] NotReadOnlyColumnsName2 = new string[] { "colDetailCheck" };
            CommonFuncCall.SetColumnReadOnly(dgAccessoriesDetail, NotReadOnlyColumnsName2);

            //unit_id.ReadOnly = true;

            dateTimeStart.Value = DateTime.Now;
            dateTimeEnd.Value   = DateTime.Now;

            //CommonFuncCall.BindUnit(unit_id);

            //公司ID
            string com_id = GlobalStaticObj.CurrUserCom_Id;

            CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择");
            CommonFuncCall.BindHandle(ddlhandle, "", "请选择");
            CommonFuncCall.BindHandle(ddloperator, "", "请选择");
            BinddgPurchaseOrder();

            //注册配件编码速查
            Choosefrm.PartsCodeChoose(txtparts_code, Choosefrm.delDataBack = PartsName_DataBack);
            //注册配件名称速查
            Choosefrm.PartsNameChoose(txtparts_name, Choosefrm.delDataBack = null);
            //注册配件类型速查
            Choosefrm.PartsTypeNameChoose(txtparts_type, Choosefrm.delDataBack = null);
        }
Example #4
0
        /// <summary> 窗体初始化
        /// </summary>
        /// <param name="RelationType">调用方是否是宇通采购订单</param>
        public UCChoosePurchasePlanOrder(string RelationType)
        {
            InitializeComponent();
            this.RelationType = RelationType;

            string[] NotReadOnlyColumnsName1 = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(dgPurchasePlan, NotReadOnlyColumnsName1);
            string[] NotReadOnlyColumnsName2 = new string[] { "colDetailCheck" };
            CommonFuncCall.SetColumnReadOnly(dgAccessoriesDetail, NotReadOnlyColumnsName2);
            //unit_id.ReadOnly = true;

            dateTimeStart.Value = DateTime.Now;
            dateTimeEnd.Value   = DateTime.Now;
            //CommonFuncCall.BindUnit(unit_id);

            //公司ID
            string com_id = GlobalStaticObj.CurrUserCom_Id;

            CommonFuncCall.BindDepartment(ddlorg_id, com_id, "请选择");
            CommonFuncCall.BindHandle(ddlhandle, "", "请选择");
            CommonFuncCall.BindHandle(ddloperator, "", "请选择");
            BinddgPurchasePlan();

            //注册配件编码速查
            Choosefrm.PartsCodeChoose(txtparts_code, Choosefrm.delDataBack = PartsName_DataBack);
            //注册配件名称速查
            Choosefrm.PartsNameChoose(txtparts_name, Choosefrm.delDataBack = null);
            //注册配件类型速查
            Choosefrm.PartsTypeNameChoose(txtparts_type, Choosefrm.delDataBack = null);
        }
Example #5
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseOrderManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2);

            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);   //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式

            dateTimeStart.Value = DateTime.Now;
            dateTimeEnd.Value   = DateTime.Now;

            dateTimeStart2.Value = DateTime.Now;
            dateTimeEnd2.Value   = DateTime.Now;

            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindCompany(ddlddlCompany2, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");

            CommonFuncCall.BindFinishStatus(ddlFinishStatus, true);
            //CommonFuncCall.BindBillStatus(ddlBillStatus2, true);
            CommonFuncCall.BindFinishStatus(ddlBillStatus2, true);
            CommonFuncCall.BindIs_Gift(ddlis_gift2, true);
            BindgvPurchaseOrderList();
        }
Example #6
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCYTManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManager();
            dateTimeReqDeliveryTimeStart.Value = DateTime.Now;
            dateTimeReqDeliveryTimeEnd.Value   = DateTime.Now;

            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvYTPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //列表的右键操作功能
            base.SetContentMenuScrip(gvYTPurchaseOrderList);
            //绑定宇通采购订单类型
            CommonFuncCall.BindYTPurchaseOrderType(ddlorder_type, true, "全部");
            //绑定紧急程度
            CommonFuncCall.BindComBoxDataSource(ddlemergency_level, "emergency_level_yt", "全部");
            //调拨类型
            CommonFuncCall.BindYTAllotType(ddlallot_type, true, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
            CommonFuncCall.BindOrderStatus(ddlorder_status, true);


            BindgvYTPurchaseOrderList();
        }
Example #7
0
        /// <summary> 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSaleBillManangSearch_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2);

            base.SetContentMenuScrip(gvPurchaseOrderList);
            base.SetContentMenuScrip(gvPurchaseList2);
            base.ClearAllToolStripItem();
            base.AddToolStripItem(base.btnExport);
            base.AddToolStripItem(base.btnView);
            base.AddToolStripItem(base.btnSet);
            base.AddToolStripItem(base.btnPrint);

            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);   //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式

            dateTimeStart.Value  = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value    = DateTime.Now;
            dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd2.Value   = DateTime.Now;

            //单据类型
            CommonFuncCall.BindSaleOrderType(ddlorder_type, true, "全部");
            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部");
            //发票类型
            CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlbalance_way, "全部");
            //结算账户
            CommonFuncCall.BindAccount(ddlbalance_account, "", "全部");
            //是否赠品
            CommonFuncCall.BindIs_Gift(ddlis_gift2, true);
            //结算情况
            CommonFuncCall.BindBalanceStatus(ddlbalance, true, "全部");
            //出库状态
            CommonFuncCall.BindOutStockStatus(ddlStockOutStatus2, true, "全部");

            //公司ID
            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindCompany(ddlCompany2, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
            BindgvPurchaseOrderList();

            Choosefrm.CusCodeChoose(txtcust_code, Choosefrm.delDataBack = CustName_DataBack);

            //按客户或配件信息查看---注册配件编码速查
            Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack);
            //按客户或配件信息查看---注册配件类型速查
            Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null);
            //按客户或配件信息查看---注册配件车型速查
            Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null);
            //按客户或配件信息查看---注册客户编码速查
            Choosefrm.CusCodeChoose(txtcust_code2, Choosefrm.delDataBack = CustName2_DataBack);
        }
Example #8
0
        public UCSaleOrderView(string sale_order_id, string order_status, UCSaleOrderManager uc)
        {
            InitializeComponent();
            this.uc          = uc;
            this.SaleorderId = sale_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(sale_order_id);
            GetAccessories(sale_order_id);
            base.SaveEvent += new ClickHandler(UCSaleOrderView_SaveEvent);
        }
Example #9
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseOrderManager_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2);

            base.SetContentMenuScrip(gvPurchaseOrderList);
            base.SetContentMenuScrip(gvPurchaseList2);
            base.ClearAllToolStripItem();
            base.AddToolStripItem(base.btnExport);
            base.AddToolStripItem(base.btnView);
            base.AddToolStripItem(base.btnSet);
            base.AddToolStripItem(base.btnPrint);
            //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(this, btnSearch, btnClear);
            //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(this, btnSearch2, btnClear2);

            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;

            dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd2.Value   = DateTime.Now;

            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindCompany(ddlddlCompany2, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");

            CommonFuncCall.BindFinishStatus(ddlFinishStatus, true);
            //CommonFuncCall.BindBillStatus(ddlBillStatus2, true);
            CommonFuncCall.BindFinishStatus(ddlBillStatus2, true);
            CommonFuncCall.BindIs_Gift(ddlis_gift2, true);
            BindgvPurchaseOrderList();

            //按采购订单查看---注册供应商编码速查
            Choosefrm.SupperNameChoose(txtsup_name, Choosefrm.delDataBack = null);

            //按供应商或配件信息查看---注册配件编码速查
            Choosefrm.PartsCodeChoose(txtparts_code2, Choosefrm.delDataBack = PartsName_DataBack);
            //按供应商或配件信息查看---注册配件类型速查
            Choosefrm.PartsTypeNameChoose(txtparts_type2, Choosefrm.delDataBack = null);
            //按供应商或配件信息查看---注册配件车型速查
            Choosefrm.PartsCarModelNameChoose(txtparts_cartype2, Choosefrm.delDataBack = null);
            //按供应商或配件信息查看---注册供应商编码速查
            Choosefrm.SupperCodeChoose(txtsup_code2, Choosefrm.delDataBack = SupName2_DataBack);
        }
Example #10
0
        public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc)
        {
            InitializeComponent();
            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            //CommonFuncCall.BindWarehouse(wh_id);
            //CommonFuncCall.BindUnit(unit_id);

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

            LoadInfo(purchase_billing_id);
            GetAccessories(purchase_billing_id);
        }
Example #11
0
        /// <summary> 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseBillManangView_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2);

            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);   //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式

            dateTimeStart.Value  = DateTime.Now;
            dateTimeEnd.Value    = DateTime.Now;
            dateTimeStart2.Value = DateTime.Now;
            dateTimeEnd2.Value   = DateTime.Now;

            //单据类型
            CommonFuncCall.BindPurchaseOrderType(ddlorder_type, true, "全部");
            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部");
            //发票类型
            CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlbalance_way, "全部");
            //结算账户
            CommonFuncCall.BindAccount(ddlbalance_account, "", "全部");
            //是否赠品
            CommonFuncCall.BindIs_Gift(ddlis_gift2, true);
            //结算情况
            CommonFuncCall.BindBalanceStatus(ddlbalance, true, "全部");
            //入库状态
            CommonFuncCall.BindIntoStockStatus(ddlStockInStatus2, true, "全部");

            //公司ID
            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindCompany(ddlCompany2, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");


            string table         = "tb_supplier";
            string displayColumn = "sup_code";
            string valueColumn   = "sup_full_name";

            //设置表和显示字段
            this.txtsup_code.SetBindTable(table, displayColumn, valueColumn);
            this.txtsup_code.GetDataSourced += new ServiceStationClient.ComponentUI.TextBox.TextChooser.GetDataSourceHandler(this.Sup_CodeBindData);
        }
Example #12
0
 public UCSalePlanViewSearch(string plan_id, UCSalePlanManagerSearch uc)
 {
     InitializeComponent();
     base.SetBaseButtonStatus();
     base.SetButtonVisiableView();
     base.btnSave.Visible = true;
     this.planId          = plan_id;
     this.uc = uc;
     string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
     CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand");
     LoadInfo(plan_id);
     GetAccessories(plan_id);
     txtsuspend_reason.Enabled     = chkis_suspend.Checked;
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }
Example #13
0
        /// <summary>
        /// 窗体初始化
        /// </summary>
        /// <param name="status"></param>
        /// <param name="sale_billing_id"></param>
        /// <param name="uc"></param>
        public UCSaleBillView(string sale_billing_id, UCSaleBillManang uc)
        {
            InitializeComponent();
            //CommonFuncCall.BindWarehouse(wh_id);
            //CommonFuncCall.BindUnit(unit_id);
            base.SetBaseButtonStatus();
            if (uc != null)
            {
                base.SetButtonVisiableView();
            }
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName);

            dt_parts_brand = CommonFuncCall.BindDicDataSource("sys_parts_brand");
            LoadInfo(sale_billing_id);
            GetAccessories(sale_billing_id);
        }
Example #14
0
        public UCPurchasePlanOrderView2(string plan_id, UCPurchasePlanOrderManagView uc)
        {
            InitializeComponent();
            this.uc     = uc;
            this.planId = plan_id;

            base.SetBaseButtonStatus();
            base.SetButtonVisiableView();
            base.btnSave.Visible = true;
            //CommonFuncCall.BindUnit(unit_id);
            LoadInfo(plan_id);
            GetAccessories(plan_id);
            txtsuspend_reason.Enabled = chkis_suspend.Checked;
            string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);
            base.SaveEvent += new ClickHandler(UCPurchasePlanOrderView_SaveEvent);
        }
Example #15
0
        /// <summary>
        /// 窗体加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchasePlanOrderManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now;
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();
        }
Example #16
0
        public UCPurchaseBillView(string purchase_billing_id, UCPurchaseBillManang uc)
        {
            InitializeComponent();
            this.uc = uc;
            this.purchase_billing_id = purchase_billing_id;
            base.SetBaseButtonStatus();
            if (uc != null)
            {
                base.SetButtonVisiableView();
            }
            //CommonFuncCall.BindWarehouse(wh_id);
            //CommonFuncCall.BindUnit(unit_id);
            base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent);
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList, NotReadOnlyColumnsName);

            LoadInfo(purchase_billing_id);
            GetAccessories(purchase_billing_id);
        }
Example #17
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();
        }
Example #18
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseOrderManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManager();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式

            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_mode, "sys_trans_mode", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlclosing_way, "全部");

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
            CommonFuncCall.BindOrderStatus(ddlState, true);

            BindgvPurchaseOrderList();
        }
Example #19
0
 /// <summary> 窗体初始化
 /// </summary>
 /// <param name="sale_order_id"></param>
 /// <param name="order_status"></param>
 /// <param name="uc"></param>
 public UCSalePlanView(string sale_plan_id, UCSalePlanManager uc)
 {
     InitializeComponent();
     this.uc     = uc;
     this.planId = sale_plan_id;
     base.SetBaseButtonStatus();
     if (uc != null)
     {
         base.SetButtonVisiableView();
         base.btnSave.Visible = true;
     }
     base.InvalidOrActivationEvent += new ClickHandler(UCPurchasePlanOrderView_InvalidOrActivationEvent);
     string[] NotReadOnlyColumnsName = new string[] { "colCheck", "is_suspend" };
     CommonFuncCall.SetColumnReadOnly(gvPurchasePlanList, NotReadOnlyColumnsName);
     //CommonFuncCall.BindUnit(unit_id);
     LoadInfo(sale_plan_id);
     GetAccessories(sale_plan_id);
     //txtsuspend_reason.Enabled = chkis_suspend.Checked;
     base.SaveEvent += new ClickHandler(UCSalePlanView_SaveEvent);
     gvPurchasePlanList.CellClick += new DataGridViewCellEventHandler(gvPurchasePlanList_CellClick);
 }
Example #20
0
        /// <summary> 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseBillManangView_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            string[] NotReadOnlyColumnsName2 = new string[] { "p_colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseList2, NotReadOnlyColumnsName2);

            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);   //设置查询按钮和清除按钮样式
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch2, btnClear2); //设置查询按钮和清除按钮样式

            dateTimeStart.Value  = DateTime.Now;
            dateTimeEnd.Value    = DateTime.Now;
            dateTimeStart2.Value = DateTime.Now;
            dateTimeEnd2.Value   = DateTime.Now;

            //单据类型
            CommonFuncCall.BindPurchaseOrderType(ddlorder_type, true, "全部");
            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部");
            //发票类型
            CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部");
            //结算方式
            CommonFuncCall.BindBalanceWay(ddlbalance_way, "全部");
            //结算账户
            CommonFuncCall.BindAccount(ddlbalance_account, "", "全部");
            //是否赠品
            CommonFuncCall.BindIs_Gift(ddlis_gift2, true);
            //结算情况
            CommonFuncCall.BindBalanceStatus(ddlbalance, true, "全部");
            //入库状态
            CommonFuncCall.BindIntoStockStatus(ddlStockInStatus2, true, "全部");

            //公司ID
            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindCompany(ddlCompany2, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");
        }
Example #21
0
        //private long CurrteTimeTicks = 0;
        #endregion

        #region 初始化窗体
        /// <summary> 初始化窗体
        /// </summary>
        public UCPurchasePlanOrderManagView()
        {
            InitializeComponent();

            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();

            gvPurchasePlanOrderList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvPurchasePlanOrderList_CellMouseClick);
        }
Example #22
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchaseBillManang_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManager();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //列表的右键操作功能
            base.SetContentMenuScrip(gvPurchaseOrderList);
            //单据类型
            CommonFuncCall.BindPurchaseOrderType(ddlorder_type, true, "全部");
            //运输方式
            CommonFuncCall.BindComBoxDataSource(ddltrans_way, "sys_trans_mode", "全部");
            //发票类型
            CommonFuncCall.BindComBoxDataSource(ddlreceipt_type, "sys_receipt_type", "全部");
            //单据状态
            CommonFuncCall.BindOrderStatus(ddlState, true);

            CommonFuncCall.BindCompany(ddlCompany, "全部");
            CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
            CommonFuncCall.BindHandle(ddlhandle, "", "全部");

            BindgvPurchaseOrderList();
        }
Example #23
0
        BusinessPrint businessPrint;//业务打印功能
        #endregion

        #region 初始化窗体
        /// <summary> 初始化窗体
        /// </summary>
        public UCPurchasePlanOrderManagView()
        {
            InitializeComponent();

            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);

            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();

            gvPurchasePlanOrderList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvPurchasePlanOrderList_CellMouseClick);
            base.ExportEvent += new ClickHandler(UCPurchasePlanOrderManagView_ExportEvent);
            base.ViewEvent   += new ClickHandler(UCPurchasePlanOrderManagView_ViewEvent);
            base.PrintEvent  += new ClickHandler(UCPurchasePlanOrderManagView_PrintEvent);
            base.SetEvent    += new ClickHandler(UCPurchasePlanOrderManagView_SetEvent);
            #region 预览、打印设置
            string        printObject  = "tb_parts_purchase_plan_s";
            string        printTitle   = "采购计划单查询";
            List <string> listNotPrint = new List <string>();
            listNotPrint.Add(plan_id.Name);
            PaperSize paperSize = new PaperSize();
            paperSize.Width  = 297;
            paperSize.Height = 210;
            businessPrint    = new BusinessPrint(gvPurchasePlanOrderList, printObject, printTitle, paperSize, listNotPrint);
            #endregion
        }