Beispiel #1
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);
        }
Beispiel #2
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();
        }
Beispiel #3
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();
        }
Beispiel #4
0
 private void UCBankSummariz_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //绑定结算账户
     CommonFuncCall.BindAccount(cboAccount, "全部");
     BindData();
 }
Beispiel #5
0
 private void UCBankSummariz_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //绑定结算账户
     CommonFuncCall.BindAccount(cboAccount, "全部");
     diDate.StartDate           = DateTime.Now.ToString("yyyy-MM-01");
     diDate.EndDate             = DateTime.Now.ToString("yyyy-MM-dd");
     colQiChu.DefaultCellStyle  = styleMoney;
     colShouRu.DefaultCellStyle = styleMoney;
     colZhiChu.DefaultCellStyle = styleMoney;
     colQiMo.DefaultCellStyle   = styleMoney;
     BindData();
 }
Beispiel #6
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);
        }
Beispiel #7
0
        //选择结算单位,绑定默认结算账户
        private void cboBalanceWay_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cbobalance_way.SelectedItem == null)
            {
                return;
            }
            DataRowView drv            = (DataRowView)cbobalance_way.SelectedItem;
            string      defalutAccount = drv["default_account"].ToString();

            if (defalutAccount.Length == 0)
            {
                return;
            }
            CommonFuncCall.BindAccount(cbobalance_account, defalutAccount, "全部");
        }
Beispiel #8
0
 private void UCBankDetail_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //绑定结算账户
     CommonFuncCall.BindAccount(cboAccount, "全部");
     cboCompany.SelectedValue    = company;
     cboAccount.SelectedValue    = account;
     diDate.StartDate            = startDate;
     diDate.EndDate              = endDate;
     colJieSuan.DefaultCellStyle = styleMoney;
     colShouRu.DefaultCellStyle  = styleMoney;
     colZhiChu.DefaultCellStyle  = styleMoney;
     BindData();
 }
Beispiel #9
0
        private void UCPayableDanSummariz_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("金额");

            BindData();
        }
Beispiel #10
0
 /// <summary> 选择结算方式事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ddlbalance_way_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(ddlbalance_way.SelectedValue.ToString()))
     {
         string    sql_where = " enable_flag='1' and balance_way_id='" + ddlbalance_way.SelectedValue.ToString() + "'";
         DataTable dt        = DBHelper.GetTable("查询结算方式", "tb_balance_way", "default_account", sql_where, "", "");
         if (dt != null && dt.Rows.Count > 0)
         {
             CommonFuncCall.BindAccount(ddlbalance_account, dt.Rows[0]["default_account"].ToString(), "全部");
         }
         else
         {
             CommonFuncCall.BindAccount(ddlbalance_account, "", "全部");
         }
     }
     else
     {
         CommonFuncCall.BindAccount(ddlbalance_account, "", "全部");
     }
 }
Beispiel #11
0
        private void UCReceivableDanSummariz_Load(object sender, EventArgs e)
        {
            //绑定结算方式
            CommonFuncCall.BindBalanceWayByItem(cboBalanceWay, "全部");
            //绑定结算账户
            CommonFuncCall.BindAccount(cboPaymentAccount, "全部");
            //客户类别
            CommonFuncCall.BindComBoxDataSource(cboCust_type, "sys_customer_category", "全部");
            //绑定是否会员
            DataSources.BindComBoxDataEnum(cboIsMember, typeof(DataSources.EnumYesNo), true);
            //绑定收款类型
            DataSources.BindComBoxDataEnum(cboPaymentType, typeof(DataSources.EnumReceivableType), true);
            //绑定公司
            CommonFuncCall.BindCompany(cboCompany, "全部");

            listNegative = new List <string>();
            listNegative.Add("金额");

            BindData();
        }
Beispiel #12
0
 private void UCBankDetail_Load(object sender, EventArgs e)
 {
     //公司
     CommonFuncCall.BindCompany(cboCompany, "全部");
     //绑定结算账户
     CommonFuncCall.BindAccount(cboAccount, "全部");
     cboCompany.SelectedValue    = company;
     cboAccount.SelectedValue    = account;
     diDate.StartDate            = startDate;
     diDate.EndDate              = endDate;
     colJieSuan.DefaultCellStyle = styleMoney;
     colShouRu.DefaultCellStyle  = styleMoney;
     colZhiChu.DefaultCellStyle  = styleMoney;
     BindData();
     //双击查看明细,要手动调用权限
     if (this.Name != "CL_BusinessAnalysis_Bank_BankDet")
     {
         base.RoleButtonStstus("CL_BusinessAnalysis_Bank_BankDet");
     }
 }
Beispiel #13
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, "", "全部");
        }