/// <summary>
        /// 绑定支付方式
        /// </summary>
        public void BindZFFS()
        {
            DataSet dt = fmzffs.GetAllList();

            DDlZffs.DataSource = fmzffs.GetAllList();
            DDlZffs.DataBind();
            //  DDlZffs.Items.Insert(0, "请选择支付方式");
        }
        /// <summary>
        /// 绑定支付方式
        /// </summary>
        public void BindZFFS()
        {
            DataSet dt = fmzffs.GetAllList();

            foreach (DataRow dr in dt.Tables[0].Rows)
            {
                hid_zfName.Value += dr["meth_pay_id"].ToString() + "," + dr["meth_pay_name"].ToString() + ";";
            }
            DDlZffs.DataSource = fmzffs.GetAllList();
            DDlZffs.DataBind();
            this.DDlZffs.Items.RemoveAt(0);
        }
        /// <summary>
        /// 绑定支付方式
        /// </summary>
        public void BindZFFS()
        {
            DataSet dt = fmzffs.GetAllList();

            foreach (DataRow dr in dt.Tables[0].Rows)
            {
                hid_zfName.Value += dr["meth_pay_id"].ToString() + "," + dr["meth_pay_name"].ToString() + ";";
            }
            DDlZffs.DataSource = fmzffs.GetModelList("meth_is_jie=1");

            DDlZffs.DataBind();
            DropDownList1.DataSource = fmzffs.GetAllList();
            DropDownList1.DataBind();
        }
Beispiel #4
0
 //绑定支付方式下拉框
 public void MethPayData()
 {
     meth_payDdl.DataSource     = mpBll.GetAllList();
     meth_payDdl.DataValueField = "meth_pay_id";
     meth_payDdl.DataTextField  = "meth_pay_name";
     meth_payDdl.DataBind();
 }
Beispiel #5
0
 private void BindMethPay()
 {
     PayMethod.DataSource     = bllmp.GetAllList();
     PayMethod.DataTextField  = "meth_pay_name";
     PayMethod.DataValueField = "meth_pay_id";
     PayMethod.DataBind();
 }
Beispiel #6
0
        /// <summary>
        /// 绑定支付方式
        /// </summary>
        public void BindZFFS()
        {
            DDlZffs.DataSource = fmzffs.GetAllList();
            DDlZffs.DataBind();
            int count = fmzffs.GetRecordCount(" 1=1");

            // count = count - 2;
            DDlZffs.Items.Insert(count, "信用预授权");
            // DDlZffs.Items.RemoveAt(0);
        }
Beispiel #7
0
        /// <summary>
        /// 绑定信息
        /// </summary>
        public void BindGv()
        {
            DivHtml.InnerHtml = "";
            string  Div = "";
            DataSet dt  = null;

            if (txt_type.Value == "0")
            {
                dt = fmgeust.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["gs_name"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",0)\">x</em></div>";
                }
            }
            if (txt_type.Value == "1")
            {
                dt = fmunit.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["unit_name"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",1)\">x</em></div>";
                }
            }
            if (txt_type.Value == "2")
            {
                dt = fmfea.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["room_feature_name"] + "</span> <em onclick=\"BookEancel(" + dr["room_feature_id"].ToString() + ",2)\">x</em></div>";
                }
            }
            if (txt_type.Value == "3")
            {
                dt = fmmety.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["meth_pay_name"] + "</span> <em onclick=\"BookEancel(" + dr["meth_pay_id"].ToString() + ",3)\">x</em></div>";
                }
            }
            if (txt_type.Value == "4")
            {
                dt = fmcdtype.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["ct_name"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",4)\">x</em></div>";
                }
            }
            if (txt_type.Value == "5")
            {
                dt = fmroom.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["hs_name"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }

            if (txt_type.Value == "7")//客户状态
            {
                BLL.customerState bllcs = new BLL.customerState();
                dt = bllcs.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["csName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }

            if (txt_type.Value == "8")//客户类型
            {
                BLL.customerType bllct = new BLL.customerType();
                dt = bllct.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["ctName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }


            if (txt_type.Value == "9")//客户行业
            {
                BLL.cIndustry bllci = new BLL.cIndustry();
                dt = bllci.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["IndustryName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }


            if (txt_type.Value == "10")//协议项目类型
            {
                BLL.cpType bllct = new BLL.cpType();
                dt = bllct.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["ptName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }
            if (txt_type.Value == "11")//系统类型
            {
                BLL.csysType bllcts = new BLL.csysType();
                dt = bllcts.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["stName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }
            if (txt_type.Value == "12")//部门
            {
                BLL.cDepartment bllcts = new BLL.cDepartment();
                dt = bllcts.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["cDName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }
            if (txt_type.Value == "13")//职务
            {
                BLL.cPost bllcts = new BLL.cPost();
                dt = bllcts.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["cpName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }
            if (txt_type.Value == "14")//称呼
            {
                BLL.cCall bllcts = new BLL.cCall();
                dt = bllcts.GetAllList();
                foreach (DataRow dr in dt.Tables[0].Rows)
                {
                    Div += "<div class='lin'><span>" + dr["callName"] + "</span> <em onclick=\"BookEancel(" + dr["id"].ToString() + ",5)\">x</em></div>";
                }
            }

            DivHtml.InnerHtml = Div;
        }