示例#1
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();
 }
示例#2
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);
        }
示例#3
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();
        }
示例#4
0
 //窗体加载
 private void UCSaleProfitSummariz_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);
     BindData();
 }
示例#5
0
 //窗体加载
 private void UCSaleDiscountSummariz_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, "全部");
     BindData();
 }
示例#6
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSaleBillManang_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManager();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchaseOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式

            //单据类型
            CommonFuncCall.BindSaleOrderType(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();
        }