예제 #1
0
        private void UCActualDetail_Load(object sender, EventArgs e)
        {
            CommonFuncCall.BindCompany(cboCompany, "全部");     //绑定公司
            CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库
            #region 显示合并表头
            dgvReport.MergeColumnNames.Add("收入数量");
            dgvReport.AddSpanHeader(6, 2, "收入数量");
            dgvReport.MergeColumnNames.Add("发出数量");
            dgvReport.AddSpanHeader(8, 2, "发出数量");
            dgvReport.MergeColumnNames.Add("结存数量");
            dgvReport.AddSpanHeader(10, 2, "结存数量");
            #endregion

            #region 报表合并表头
            List <string> listRevenues = new List <string>();
            listRevenues.Add("数量(基)");
            listRevenues.Add("数量(辅)");
            AddSpanRows("收入数量", listRevenues);

            List <string> listExpend = new List <string>();
            listExpend.Add("数量(基)");
            listExpend.Add("数量(辅)");
            AddSpanRows("支出数量", listExpend);

            List <string> listBalance = new List <string>();
            listBalance.Add("数量(基)");
            listBalance.Add("数量(辅)");
            AddSpanRows("结存数量", listBalance);
            #endregion

            BindData();
        }
예제 #2
0
        private void UCPayableDetail_Load(object sender, EventArgs e)
        {
            //供应商类别
            CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部");
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");
            base.listNegative = new List <string>();
            listNegative.Add("其中商业折扣"); //其中商业折扣
            listNegative.Add("本期付款");   //本期付款
            listNegative.Add("其中现金折扣"); //其中现金折扣
            listNegative.Add("期末应付");   //期末应付

            txtcSup_code.Text         = supCode;
            txtSup_name.Caption       = supName;
            cboSup_type.SelectedValue = supType;
            dicreate_time.StartDate   = startDate;
            dicreate_time.EndDate     = endDate;
            cboCompany.SelectedValue  = company;
            cboorg_id.SelectedValue   = orgID;

            BindData();

            //双击查看明细,要手动调用权限
            if (this.Name != "CL_BusinessAnalysis_ARAP_PayableDet")
            {
                base.RoleButtonStstus("CL_BusinessAnalysis_ARAP_PayableDet");
            }
        }
예제 #3
0
 /// <summary>
 /// 窗体初始化加载
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCRequisitionManager_Load(object sender, EventArgs e)
 {
     try
     {
         //获取默认系统时间
         dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
         dateTimeEnd.Value   = DateTime.Now.ToString();
         //单据类型
         CommonFuncCall.BindAllotBillType(ComBorder_type_name, true, "请选择");//调拨单类型
         //开单类型
         CommonFuncCall.BindAllocationBillingType(ComBcall_out_wh_name, true, "请选择");
         //获取仓库名称
         CommonFuncCall.BindWarehouse(ComBcall_in_wh_name, "请选择");
         CommonFuncCall.BindWarehouse(ComBcall_out_wh_name, "请选择");
         // 调入机构
         CommonFuncCall.BindCompany(ComBcall_in_org_name, "全部");
         //运输方式
         CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "全部");
         //单据状态
         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);
     }
 }
예제 #4
0
        private void UCWarehouseDifferentiate_Load(object sender, EventArgs e)
        {
            CommonFuncCall.BindCompany(cboCompany, "全部");//绑定公司

            #region 显示合并表头
            dgvReport.MergeColumnNames.Add("合计");
            dgvReport.AddSpanHeader(7, 2, "合计");
            dgvReport.MergeColumnNames.Add("仓库1");
            dgvReport.AddSpanHeader(9, 2, "仓库1");
            #endregion

            #region 报表合并表头
            List <string> listRevenues = new List <string>();
            listRevenues.Add("数量");
            listRevenues.Add("金额");
            AddSpanRows("合计", listRevenues);

            List <string> listExpend = new List <string>();
            listExpend.Add("数量");
            listExpend.Add("金额");
            AddSpanRows("仓库1", listExpend);
            #endregion

            BindData();
        }
예제 #5
0
        private void UCReceivableDetail_Load(object sender, EventArgs e)
        {
            //客户类别
            CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部");
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");
            //是否会员
            DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true);
            base.listNegative = new List <string>();
            listNegative.Add("其中商业折扣"); //其中商业折扣
            listNegative.Add("本期收款");   //本期收款
            listNegative.Add("其中现金折扣"); //其中现金折扣
            listNegative.Add("期末应收");   //期末应收

            txtcCust_code.Text         = custCode;
            txtCust_name.Caption       = custName;
            cboCust_type.SelectedValue = custType;
            cboIsMember.SelectedValue  = is_member;
            dicreate_time.StartDate    = startDate;
            dicreate_time.EndDate      = endDate;
            cboCompany.SelectedValue   = company;
            cboorg_id.SelectedValue    = orgID;
            BindData();

            //双击查看明细,要手动调用权限
            if (this.Name != "CL_BusinessAnalysis_ARAP_ReceivableDet")
            {
                base.RoleButtonStstus("CL_BusinessAnalysis_ARAP_ReceivableDet");
            }
        }
예제 #6
0
        private void UCReceivableDanDetail_Load(object sender, EventArgs e)
        {
            //绑定结算方式
            CommonFuncCall.BindBalanceWayByItem(cboBalanceWay, "全部");
            //绑定结算账户
            CommonFuncCall.BindAccount(cboPaymentAccount, "全部");
            //客户类别
            CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部");
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");
            //是否会员
            DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true);
            //绑定收款类型
            DataSources.BindComBoxDataEnum(cboPaymentType, typeof(DataSources.EnumReceivableType), true);
            listNegative = new List <string>();
            listNegative.Add("金额");

            txtcCust_code.Text              = custCode;
            txtCust_name.Caption            = custName;
            cboCust_type.SelectedValue      = custType;
            cboIsMember.SelectedValue       = is_member;
            cboBalanceWay.SelectedValue     = balanceWay;
            cboPaymentType.SelectedValue    = receivableType;
            cboPaymentAccount.SelectedValue = account;
            dicreate_time.StartDate         = startDate;
            dicreate_time.EndDate           = endDate;
            cboCompany.SelectedValue        = company;
            cboorg_id.SelectedValue         = orgID;

            BindData();
        }
예제 #7
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();
        }
        /// <summary>
        /// 窗体初始加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCStockReceiptAddOrEdit_Load(object sender, EventArgs e)
        {
            try
            {
                //出库类型
                CommonFuncCall.BindInOutType(Combout_wh_type_name, true, "请选择");
                //获取仓库名称
                CommonFuncCall.BindWarehouse(Combwh_name, "请选择");
                //公司ID
                string com_id = GlobalStaticObj.CurrUserCom_Id;
                CommonFuncCall.BindCompany(combcom_name, "全部");             //选择公司名称
                CommonFuncCall.BindDepartment(Comborg_name, com_id, "请选择"); //选择部门名称
                CommonFuncCall.BindHandle(Combhandle_name, "", "请选择");      //选择经手人

                if (status == WindowStatus.Edit || status == WindowStatus.Copy)
                {
                    GetBillHeadEndMessage(StockShippingId); //获取单据头尾信息
                    GetBillPartsMsg(StockShippingId);       //获取单据配件信息
                }
                else if (status == WindowStatus.Add || status == WindowStatus.Copy)
                {
                    txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }
예제 #9
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);
        }
예제 #10
0
 private void UCRepairMaterial_Load(object sender, EventArgs e)
 {
     CommonFuncCall.BindCompany(cboCompany, "全部");
     CommonFuncCall.BindWarehouse(cboWarehouse, "全部");
     DataSources.BindComBoxDataEnum(cboThreeWarranty, typeof(DataSources.EnumYesNo), true);
     BindData();
 }
예제 #11
0
 //窗体加载
 private void UCSaleBillingZongHe_Load(object sender, EventArgs e)
 {
     //单据类型
     CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部");
     //发票类型
     CommonFuncCall.BindComBoxDataSource(cboreceipt_type, "sys_receipt_type", "全部");
     //结算单位
     CommonFuncCall.BindBalanceWayByItem(cbobalance_way, "全部");
     //客户类别
     CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部");
     //仓库
     CommonFuncCall.BindWarehouse(cbowh_code, "全部");
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     #region 初始化查询
     cboorder_type.SelectedValue      = orderType;
     cboreceipt_type.SelectedValue    = receiptType;
     cbobalance_way.SelectedValue     = balanceWay;
     cbobalance_account.SelectedValue = balanceAccount;
     txtcCust_code.Text         = supCode;
     txtCust_name.Caption       = supName;
     cboCust_type.SelectedValue = supType;
     cbowh_code.SelectedValue   = whCode;
     txtcparts_code.Text        = partsCode;
     txtPartsName.Caption       = partsName;
     txtdrawing_num.Caption     = drawingNum;
     txtparts_brand.Caption     = partsBrand;
     dicreate_time.StartDate    = stratDate;
     dicreate_time.EndDate      = endDate;
     cboCompany.SelectedValue   = commpany;
     cboorg_id.SelectedValue    = orgID;
     #endregion
     BindData();
 }
예제 #12
0
        private void UCStockTypeSummariz_Load(object sender, EventArgs e)
        {
            CommonFuncCall.BindCompany(cboCompany, "全部");     //绑定公司
            CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库

            #region 显示合并表头
            dgvReport.MergeColumnNames.Add("本期收入数量");
            dgvReport.AddSpanHeader(8, 5, "本期收入数量");
            dgvReport.MergeColumnNames.Add("本期发出数量");
            dgvReport.AddSpanHeader(13, 6, "本期发出数量");
            #endregion

            #region 报表合并表头
            List <string> listRevenues = new List <string>();
            listRevenues.Add("采购开单");
            listRevenues.Add("盘点");
            listRevenues.Add("调拨");
            listRevenues.Add("其它收货");
            listRevenues.Add("合计");
            AddSpanRows("本期收入数量", listRevenues);

            List <string> listExpend = new List <string>();
            listExpend.Add("销售开单");
            listExpend.Add("调拨");
            listExpend.Add("报损");
            listExpend.Add("领料");
            listExpend.Add("其它发货");
            listExpend.Add("合计");
            AddSpanRows("本期发出数量", listExpend);
            #endregion

            BindData();
        }
예제 #13
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();
        }
예제 #14
0
        private void UCRepairManage_Load(object sender, EventArgs e)
        {
            CommonFuncCall.BindCompany(cboCompany, "全部");
            #region 显示合并表头
            dgvReport.MergeColumnNames.Add("价税合计费用");
            dgvReport.AddSpanHeader(3, 3, "价税合计费用");
            dgvReport.MergeColumnNames.Add("班组一");
            dgvReport.AddSpanHeader(6, 4, "班组一");
            dgvReport.MergeColumnNames.Add("服务顾问接车台次");
            dgvReport.AddSpanHeader(10, 4, "服务顾问接车台次");
            #endregion
            #region 报表合并表头
            List <string> listDing = new List <string>();
            listDing.Add("工时金额");
            listDing.Add("配件金额");
            listDing.Add("其他项目金额");
            AddSpanRows("价税合计费用", listDing);

            List <string> listYiShou = new List <string>();
            listYiShou.Add("台次");
            listYiShou.Add("工时金额");
            listYiShou.Add("配件金额");
            listYiShou.Add("其他项目金额");
            AddSpanRows("班组一", listYiShou);

            List <string> listZhongZhi = new List <string>();
            listZhongZhi.Add("小小");
            listZhongZhi.Add("大大");
            listZhongZhi.Add("多多");
            listZhongZhi.Add("少少");
            AddSpanRows("服务顾问接车台次", listZhongZhi);
            #endregion
        }
예제 #15
0
        private void UCAlarmDetail_Load(object sender, EventArgs e)
        {
            CommonFuncCall.BindCompany(cboCompany, "全部");     //绑定公司
            CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库

            BindData();
        }
예제 #16
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);
        }
예제 #17
0
 /// <summary>
 ///  窗体加载初始化
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCStockReceiptManager_Load(object sender, EventArgs e)
 {
     try
     {
         //获取默认系统时间
         dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
         dateTimeEnd.Value   = DateTime.Now.ToString();
         //入库类型
         CommonFuncCall.BindInOutType(ComBin_wh_type_name, true, "请选择");
         //获取仓库名称
         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);
     }
 }
예제 #18
0
 //窗体加载
 private void UCPurchasePlanSummariz1_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     BindData();
     //this.paperSize = new System.Drawing.Printing.PaperSize("采购计划汇总表", 200, 120);
 }
예제 #19
0
        //窗体加载
        private void UCSaleProfitDetail_Load(object sender, EventArgs e)
        {
            //单据类型
            CommonFuncCall.BindSaleOrderType(cboorder_type, true, "全部");
            //客户类别
            CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部");
            //仓库
            CommonFuncCall.BindWarehouse(cbowh_code, "全部");
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");
            //是否会员
            DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true);

            #region 初始化查询
            txtcCust_code.Text          = custCode;
            txtCust_name.Caption        = custName;
            cboCust_type.SelectedValue  = custType;
            cboIsMember.SelectedValue   = isMember;
            cboorder_type.SelectedValue = orderType;
            cbowh_code.SelectedValue    = whCode;
            txtcPartsType.Text          = partsType;
            txtcVehicleModels.Text      = vehicleModels;
            txtcparts_code.Text         = partsCode;
            txtPartsName.Caption        = partsName;
            txtdrawing_num.Caption      = drawingNum;
            txtparts_brand.Caption      = partsBrand;
            dicreate_time.StartDate     = stratDate;
            dicreate_time.EndDate       = endDate;
            cboCompany.SelectedValue    = commpany;
            cboorg_id.SelectedValue     = orgID;
            chbGift.Checked             = isGift;
            #endregion
            BindData();
        }
예제 #20
0
        /// <summary>
        /// 窗体初始加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCAllocationQuery_Load(object sender, EventArgs e)
        {
            try
            {
                base.SetBtnStatus(WindowStatus.View);// 根据窗体状态更改控件状态
                //根据出入库单查询出入库单
                dateTimeStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
                dateTimeEnd.Value   = DateTime.Now.ToString();
                CommonFuncCall.BindAllocationBillType(Comborder_type_name, true, "请选择");   //单据类型
                CommonFuncCall.BindInStockBillingType(Combbilling_type_name, true, "请选择"); //开单类型
                CommonFuncCall.BindWarehouse(CombWarehouse, "请选择");                        //获取仓库名称
                string com_id = GlobalStaticObj.CurrUserCom_Id;                            //公司ID
                CommonFuncCall.BindCompany(CombCompany, "全部");                             //选择公司名称
                CommonFuncCall.BindDepartment(CombDepartment, com_id, "全部");               //选择部门名称
                CommonFuncCall.BindHandle(Combhandle, "", "全部");                           //选择经办人
                CommonFuncCall.BindHandle(CombOperator, "", "全部");                         //选择操作人


                //根据配件或往来单位查询出入库单
                dateTimePartStart.Value = DateTime.Now.AddMonths(-3).ToShortDateString();
                dateTimePartEnd.Value   = DateTime.Now.ToString();
                CommonFuncCall.BindCompany(CombCompany, "全部");//公司ID
                CommonFuncCall.BindCompany(CombPartCompany, "全部");
                CommonFuncCall.BindDepartment(CombDepartment, "", "全部");
                CommonFuncCall.BindHandle(Combhandle, "", "全部");
                CommonFuncCall.BindIs_Gift(Combis_gift, true);//是否赠品
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }
예제 #21
0
        private void UCPayableDanDetail_Load(object sender, EventArgs e)
        {
            //绑定结算方式
            CommonFuncCall.BindBalanceWayByItem(cboBalanceWay, "全部");
            //绑定结算账户
            CommonFuncCall.BindAccount(cboPaymentAccount, "全部");
            //供应商类别
            CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部");
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");

            //绑定收款类型
            DataSources.BindComBoxDataEnum(cboPaymentType, typeof(DataSources.EnumPaymentType), true);
            listNegative = new List <string>();
            listNegative.Add("金额");

            txtcSup_code.Text               = supCode;
            txtSup_name.Caption             = supName;
            cboSup_type.SelectedValue       = supType;
            cboBalanceWay.SelectedValue     = balanceWay;
            cboPaymentType.SelectedValue    = payableType;
            cboPaymentAccount.SelectedValue = account;
            dicreate_time.StartDate         = startDate;
            dicreate_time.EndDate           = endDate;
            cboCompany.SelectedValue        = company;
            cboorg_id.SelectedValue         = orgID;
            BindData();
        }
예제 #22
0
        /// <summary>
        /// 窗体初始加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCRequisitionAddOrEdit_Load(object sender, EventArgs e)
        {
            try
            {
                CommonFuncCall.BindAllotBillType(Comborder_type_name, true, "请选择");               //调拨单类型
                CommonFuncCall.BindComBoxDataSource(Combtrans_way_name, "sys_trans_mode", "请选择"); //运输方式

                CommonFuncCall.BindCompany(combcall_out_org_name, "请选择");                         //调出机构
                CommonFuncCall.BindCompany(combcall_in_org_name, "请选择");                          //调入机构
                CommonFuncCall.BindWarehouse(combcall_out_wh_name, "请选择");                        //调出仓库
                CommonFuncCall.BindWarehouse(combcall_in_wh_name, "请选择");                         //调入仓库
                BrandTable = CommonFuncCall.BindDicDataSource("sys_parts_brand");                 //获得品牌名称

                if (status == WindowStatus.Edit || status == WindowStatus.Copy)
                {
                    GetBillHeadEndMessage(AllotBillId); //获取单据头尾信息
                    GetBillPartsMsg(AllotBillId);       //获取单据配件信息
                }
                else if (status == WindowStatus.Add || status == WindowStatus.Copy)
                {
                    txtorder_status_name.Caption = DataSources.GetDescription(DataSources.EnumAuditStatus.DRAFT, true);//获取单据状态
                }
            }
            catch (Exception ex)
            {
                MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }
예제 #23
0
 //窗体加载
 private void UCPurchaseOrderSummariz_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //供应商类别
     CommonFuncCall.BindComBoxDataSource(cboSupType, "sys_supplier_category", "全部");
     BindData();
 }
예제 #24
0
 //窗体加载
 private void UCSaleOrderSummariz_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //客户类别
     CommonFuncCall.BindComBoxDataSource(cboSupType, "sys_customer_category", "全部");
     BindData();
 }
예제 #25
0
 private void UCBankSummariz_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //绑定结算账户
     CommonFuncCall.BindAccount(cboAccount, "全部");
     BindData();
 }
예제 #26
0
        private void UCWarehouseSummariz_Load(object sender, EventArgs e)
        {
            ReportCommon.BindWarehouseType(cboOrderType);
            CommonFuncCall.BindCompany(cboCompany, "全部");     //绑定公司
            CommonFuncCall.BindWarehouse(cboWarehouse, "全部"); //绑定仓库

            BindData();
        }
예제 #27
0
        private const string PartStatus = "status";//配件启停用标志

        #endregion

        public UCStockQuery()
        {
            InitializeComponent();
            CommonFuncCall.BindWarehouse(CombWarehouse, "请选择");                     //获取仓库名称
            CommonFuncCall.BindCompany(CombCompany, "全部");                          //选择公司名称
            base.ExportEvent += new ClickHandler(UCStockQuery_ExportEvent);
            UIAssistants.SetButtonStyle4QueryAndClear(btnPartSearch, btnPartClear); //美化查询和清除按钮控件
            //DataGridViewEx.SetDataGridViewStyle(gvStockList, ApplyFlag);//美化表格控件
        }
예제 #28
0
        //窗体加载
        private void UCSaleOrderDetail_Load(object sender, EventArgs e)
        {
            //公司
            CommonFuncCall.BindCompany(cboCompany, "全部");
            //客户类别
            CommonFuncCall.BindComBoxDataSource(cboCustType, "sys_customer_category", "全部");
            #region 初始化查询
            txtcCustCode.Text        = supCode;
            txtCustName.Caption      = supName;
            cboCompany.SelectedValue = company;
            cboOrg.SelectedValue     = orgId;
            txtcPartsCode.Text       = partsCode;
            txtPartsName.Caption     = partsName;
            txtcPartsType.Text       = partsType;
            txtDrawingNum.Caption    = drawNum;
            txtPartsBrand.Caption    = partsBrand;
            diCreateTime.StartDate   = startDate;
            diCreateTime.EndDate     = endDate;
            #endregion
            #region 显示合并表头
            dgvReport.MergeColumnNames.Add("订货");
            dgvReport.AddSpanHeader(16, 3, "订货");
            dgvReport.MergeColumnNames.Add("已收");
            dgvReport.AddSpanHeader(19, 3, "已收");
            dgvReport.MergeColumnNames.Add("中止");
            dgvReport.AddSpanHeader(22, 3, "中止");
            dgvReport.MergeColumnNames.Add("未收");
            dgvReport.AddSpanHeader(25, 3, "未收");
            #endregion
            #region 报表合并表头
            List <string> listDing = new List <string>();
            listDing.Add("订货数量");
            listDing.Add("订货辅助数量");
            listDing.Add("订货金额");
            AddSpanRows("订货", listDing);

            List <string> listYiShou = new List <string>();
            listYiShou.Add("已收数量");
            listYiShou.Add("已收辅助数量");
            listYiShou.Add("已收金额");
            AddSpanRows("已收", listYiShou);

            List <string> listZhongZhi = new List <string>();
            listZhongZhi.Add("中止数量");
            listZhongZhi.Add("中止辅助数量");
            listZhongZhi.Add("中止金额");
            AddSpanRows("中止", listZhongZhi);

            List <string> listWeiShou = new List <string>();
            listWeiShou.Add("未收数量");
            listWeiShou.Add("未收辅助数量");
            listWeiShou.Add("未收金额");
            AddSpanRows("未收", listWeiShou);
            #endregion
            BindData();
        }
예제 #29
0
 private void UCPurchasePayment_Load(object sender, EventArgs e)
 {
     //供应商类别
     CommonFuncCall.BindComBoxDataSource(cboSup_type, "sys_supplier_category", "全部");
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     listNegative = new List <string>();
     listNegative.Add("sup_arrears");//供应商欠款
     BindData();
 }
예제 #30
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);
        }