Пример #1
0
 private void cboCompany_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cboCompany.SelectedValue == null)
     {
         return;
     }
     CommonFuncCall.BindDepartment(cboorg_id, cboCompany.SelectedValue.ToString(), "全部");
 }
Пример #2
0
        //选择公司,绑定部门
        private void cboCompany_SelectedIndexChanged(object sender, EventArgs e)
        {
            string comID = CommonCtrl.IsNullToString(cboCompany.SelectedValue);

            if (comID.Length == 0)
            {
                return;
            }
            CommonFuncCall.BindDepartment(cboOrg, comID, "全部");
        }
Пример #3
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);
        }
Пример #4
0
 public UCOldPartsPalautusAddOrEdit()
 {
     InitializeComponent();
     CommonFuncCall.BindDepartment(cboOrgId, GlobalStaticObj.CurrUserCom_Id, "请选择");
     SetDgvAnchor();
     GetRepairNo();
     BindModeYT();
     base.SyncEvent   += new ClickHandler(UCOldPartsPalautusAddOrEdit_SyncEvent);
     base.SaveEvent   += new ClickHandler(UCOldPartsPalautusAddOrEdit_SaveEvent);
     base.SubmitEvent += new ClickHandler(UCOldPartsPalautusAddOrEdit_SubmitEvent);
     base.CancelEvent += new ClickHandler(UCOldPartsPalautusAddOrEdit_CancelEvent);
 }
Пример #5
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.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value    = DateTime.Now;
            dateTimeStart2.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            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, "", "全部");
            BindgvPurchaseOrderList();

            //按采购开单查看---注册供应商编码速查
            Choosefrm.SupperCodeChoose(txtsup_code, Choosefrm.delDataBack = SupName_DataBack);

            //按供应商或配件信息查看---注册配件编码速查
            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);
        }
Пример #6
0
 /// <summary>
 /// 公司选择事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ddlCompany_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(ddlCompany.SelectedValue.ToString()))
     {
         CommonFuncCall.BindDepartment(ddlDepartment, ddlCompany.SelectedValue.ToString(), "全部");
     }
     else
     {
         CommonFuncCall.BindDepartment(ddlDepartment, "", "全部");
         CommonFuncCall.BindHandle(ddlhandle, "", "全部");
     }
 }
Пример #7
0
 /// <summary>
 /// 公司选择
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ddlCompany_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(ComBcom_name.SelectedValue.ToString()))
     {
         CommonFuncCall.BindDepartment(ComBorg_name, ComBcom_name.SelectedValue.ToString(), "全部");
     }
     else
     {
         CommonFuncCall.BindDepartment(ComBorg_name, "", "全部");
         CommonFuncCall.BindHandle(ComBhandle_name, "", "全部");
     }
 }
Пример #8
0
 /// <summary>
 /// 选择公司事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ddlCompany_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(CombCompany.SelectedValue.ToString()))
     {
         CommonFuncCall.BindDepartment(CombDepartment, CombCompany.SelectedValue.ToString(), "全部");
     }
     else
     {
         CommonFuncCall.BindDepartment(CombDepartment, "", "全部");
         CommonFuncCall.BindHandle(Combhandle, "", "全部");
         CommonFuncCall.BindHandle(CombOperator, "", "全部");//选择操作人
     }
 }
Пример #9
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);
        }
Пример #10
0
        public Hashtable PartHTable          = new Hashtable();     //存放开单主键ID与对应的配件编号

        #endregion

        #region 窗体初始化
        public UCImportSaleReturnBilling(string WhName)
        {
            InitializeComponent();
            this.WareHosueName  = WhName;                           //获取出入库单据类型
            dateTimeStart.Value = DateTime.Now.ToShortDateString(); //开始时间
            dateTimeEnd.Value   = DateTime.Now.ToShortDateString(); //结束时间
            CommonFuncCall.BindUnit(unit);                          //从码表中获取单位名称


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

            CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称
            CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue);         //经手人
            CommonFuncCall.BindHandle(ddloperator, "", DefaultValue);       //操作人
        }
 public UCFMaterialReturnAddOrEdit()
 {
     InitializeComponent();
     GetRepairNo();
     CommonFuncCall.BindDepartment(cboOrgId, GlobalStaticObj.CurrUserCom_Id, "请选择");
     SetDgvAnchor();
     BindWarehouseWay();
     SetTopbuttonShow();
     base.SaveEvent   += new ClickHandler(UCFMaterialReturnAddOrEdit_SaveEvent);
     base.SubmitEvent += new ClickHandler(UCFMaterialReturnAddOrEdit_SubmitEvent);
     base.ImportEvent += new ClickHandler(UCFMaterialReturnAddOrEdit_ImportEvent);
     base.CancelEvent += new ClickHandler(UCFMaterialReturnAddOrEdit_CancelEvent);
     dgvMaterials.CellValueChanged += new DataGridViewCellEventHandler(dgvMaterials_CellValueChanged);
     SetQuick();
 }
        public Hashtable PartHTable          = new Hashtable();     //存放开单主键ID与对应的配件编号

        #endregion

        #region 窗体初始化
        public UCImportStockBill(string Bill_Type, string Billing_Type)
        {
            InitializeComponent();
            this.Text           = PrefixCaption + Billing_Type;     //获取主窗体标题内容
            this.BillType       = Bill_Type;                        //获取出入库单据类型
            this.BillingType    = Billing_Type;                     //获取开单类型
            dateTimeStart.Value = DateTime.Now.ToShortDateString(); //开始时间
            dateTimeEnd.Value   = DateTime.Now.ToShortDateString(); //结束时间
            CommonFuncCall.BindUnit(unit);                          //从码表中获取单位名称


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

            CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称
            CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue);         //经手人
            CommonFuncCall.BindHandle(ddloperator, "", DefaultValue);       //操作人
        }
Пример #13
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();
        }
Пример #14
0
        /// <summary> 窗体初始化
        /// </summary>
        public UCChooseSalePlanOrder()
        {
            InitializeComponent();
            dgSalePlan.ReadOnly          = false;
            dgAccessoriesDetail.ReadOnly = false;
            //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, "", "请选择");
        }
Пример #15
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();
        }
Пример #16
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, "", "全部");
        }
Пример #17
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);
        }
Пример #18
0
        /// <summary>
        /// 窗体加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSalePlanManager_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManager();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvSalePlanList, NotReadOnlyColumnsName);
            //列表的右键操作功能
            base.SetContentMenuScrip(gvSalePlanList);
            //禁止列表自增列
            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.BindOrderStatus(ddlState, true);
            BindgvSalePlanList();
        }
Пример #19
0
        public Hashtable PartHTable        = new Hashtable();     //存放开单主键ID与对应的配件编号

        #endregion

        #region 窗体初始化
        public UCImportBilling(string Bill_Type, string Billing_Type)
        {
            InitializeComponent();
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear); //设置查询按钮和清除按钮样式
            this.Text           = PrefixCaption + Billing_Type;             //获取主窗体标题内容
            this.BillType       = Bill_Type;                                //获取出入库单据类型
            this.BillingType    = Billing_Type;                             //获取开单类型
            dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToString();    //开始时间
            dateTimeEnd.Value   = DateTime.Now.ToString();                  //结束时间
            //CommonFuncCall.BindUnit(unit);//从码表中获取单位名称
            if (Billing_Type == SaleBilling)
            {
                arrival_date.Visible = false;                           //隐藏到货时期
            }
            //单据列表
            dgBillList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in dgBillList.Columns)
            {
                if (dgCol.Name != colCheck.Name)
                {
                    dgCol.ReadOnly = true;
                }
            }
            //配件列表
            dgPartslist.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in dgPartslist.Columns)
            {
                if (dgCol.Name != colDetailCheck.Name)
                {
                    dgCol.ReadOnly = true;
                }
            }
            string com_id = GlobalStaticObj.CurrUserCom_Id;                 //公司ID

            CommonFuncCall.BindDepartment(ddlorg_id, com_id, DefaultValue); //部门名称
            CommonFuncCall.BindHandle(ddlhandle, "", DefaultValue);         //经手人
            CommonFuncCall.BindHandle(ddloperator, "", DefaultValue);       //操作人
        }
Пример #20
0
        /// <summary> 窗体初始化
        /// </summary>
        public UCChoosePurchaseOrder(string sup_id)
        {
            InitializeComponent();

            this.sup_id = sup_id;
            dgPurchaseOrder.ReadOnly     = false;
            dgAccessoriesDetail.ReadOnly = false;
            //unit_id.ReadOnly = true;

            dateTimeStart.Value        = DateTime.Now;
            dateTimeEnd.Value          = DateTime.Now;
            dateTimeArrival_date.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();
        }
Пример #21
0
 /// <summary>
 ///  窗体加载初始化
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCStockCheckManager_Load(object sender, EventArgs e)
 {
     try
     {
         //获取默认系统时间
         dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
         dateTimeEnd.Value   = DateTime.Now.ToString();
         //获取仓库名称
         CommonFuncCall.BindWarehouse(ComBwh_name, "请选择");
         //单据状态
         CommonFuncCall.BindOrderStatus(ComBorder_status_name, true);
         //公司
         CommonFuncCall.BindCompany(ComBcom_name, "全部");
         //部门
         CommonFuncCall.BindDepartment(ComBorg_name, "", "全部");
         //经办人
         CommonFuncCall.BindHandle(ComBhandle_name, "", "全部");
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }
Пример #22
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
        }
Пример #23
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();
        }
Пример #24
0
        /// <summary> 窗体初始化
        /// </summary>
        /// <param name="RelationType">调用方是否是宇通采购订单</param>
        public UCChooseSaleOrder(string cust_id, string RelationType)
        {
            InitializeComponent();

            this.cust_id                 = cust_id;
            this.RelationType            = RelationType;
            dgPurchaseOrder.ReadOnly     = false;
            dgAccessoriesDetail.ReadOnly = false;
            //unit_id.ReadOnly = true;

            dateTimeStart.Value     = DateTime.Now;
            dateTimeEnd.Value       = DateTime.Now;
            datedelivery_time.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();
        }
Пример #25
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(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.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);
        }