Ejemplo n.º 1
0
        private void LL()
        {
            string sql;

            if (id > 0)
            {
                sql = "select Name,Address,FixTel,Tel,FK_Area from User_Contact where ConSN=" + id + " and FK_User="******"Name").ToString();
                    this.cAddress.Text = d.Eval("Address").ToString();
                    this.cFixTel.Text  = d.Eval("FixTel").ToString();
                    this.cTel.Text     = d.Eval("Tel").ToString();
                    this.cArea.Text    = d.Eval("FK_Area").ToString();

                    cp.Exe(d.Eval("FK_Area"));
                    //this.cSelectSpanHidden.Text = acp.GetPath;
                }
                else
                {
                    Response.Redirect(Request.Url.AbsolutePath);
                }
            }
        }
Ejemplo n.º 2
0
        //订单详细信息
        private void GetOrdInfo()
        {
            //pageMod = new Ord_InfoM();

            string sSQL = "select Ticket_1_Number,Ticket_1_Price,UserName,RealName,FixTel,Tel,Area,Address,OrdNumber,TotalPrice,AddDate,Caption,Remark,Status,StatusPay,ToMinTime,ToMaxTime,(select PayName from Pay_Info where PaySN=a.FK_Pay) as pn from Ord_Info a where OrdSN=" + id + " and FK_User="******"Remark").ToString().Length == 0)
                //    pageMod.Remark = "无";

                ItemHandler kpOrd = new ItemHandler("OrderStatus");

                pageStatusName = kpOrd.GetDircBit(int.Parse(d.Eval("Status").ToString()));
                pagePayName    = d.Eval("pn").ToString();

                //区域
                GetClassPath1 acp = new GetClassPath1();
                ClassPath     cp  = new ClassPath(PubData.GetDataTable("pub_area"), acp);
                cp.Exe(Convert.ToInt32(d.Eval("Area")));
                pageAreaPath = acp.GetPath;

                pageTicket_1_Number = d.Eval("Ticket_1_Number").ToString();
                pageTicket_1_Price  = double.Parse(d.Eval("Ticket_1_Price").ToString());
                pageTotalPrice      = double.Parse(d.Eval("TotalPrice").ToString());
            }
            else
            {
                msgG.Error("此订单不存在");
            }
        }
Ejemplo n.º 3
0
        private void LL()
        {
            string sSQL  = "select RealName,Sex,Area,Address,EMail,Tel from User_Info where UserSN=" + LoginInfo.UserID;
            string sSex  = "1";
            string sArea = string.Empty;

            using (IDataReader dr = DbHelp.Read(sSQL))
            {
                if (dr.Read())
                {
                    this.cName.Text    = dr["RealName"].ToString();
                    this.cEMail.Text   = dr["EMail"].ToString();
                    this.cTel.Text     = dr["Tel"].ToString();
                    this.cAddress.Text = dr["Address"].ToString();

                    sArea           = dr["Area"].ToString();
                    this.cArea.Text = sArea;
                    sSex            = dr["Sex"].ToString();
                }
                else
                {
                    Message.Error("不存此用户");
                }
            }

            this.cSex.Text = Bind.GetHtmlRadio(KeyPair.Sex, "cSex", sSex);

            GetClassPath1 acp = new GetClassPath1();
            ClassPath     cp  = new ClassPath(PubData.GetDataTable("Pub_Area"), acp);

            cp.Exe(Fn.IsInt(sArea, 0));
            this.cSelectSpanHidden.Text = acp.GetPath;
        }
Ejemplo n.º 4
0
        private void CurPath(int pClassID)
        {
            DataTable dtCaiPuClass = PubData.GetDataTable("caipu_class");

            GetClassPath gcp = new GetClassPath(GetURL.CaiPu.Class("{0}"));
            ClassPath    cp  = new ClassPath(dtCaiPuClass, gcp);

            cp.Exe(pClassID);
            this.curPath.Text = " &gt; <a href=\"" + GetURL.CaiPu.Default() + "\">烹饪课堂</a>" + gcp.GetPath;
        }
Ejemplo n.º 5
0
        private void CurPath(int pClassID)
        {
            DataTable dtProClass = PubData.GetDataTable("pro_class");

            GetClassPath gcp = new GetClassPath(GetURL.Pro.Class("{0}"));
            ClassPath    cp  = new ClassPath(dtProClass, gcp);

            cp.Exe(pClassID);
            this.curPath.Text = gcp.GetPath;
        }
Ejemplo n.º 6
0
        private void CurPath(int pClassID)
        {
            DataTable dtClass = PubData.GetDataTable("TaoCan_Class");

            GetClassPath gcp = new GetClassPath(GetURL.TaoCan.Class("{0}"));
            ClassPath    cp  = new ClassPath(dtClass, gcp);

            cp.Exe(pClassID);
            this.curPath.Text = " &gt; <a href=\"" + GetURL.TaoCan.Default() + "\">营养套餐</a>" + gcp.GetPath;
        }
Ejemplo n.º 7
0
        private void LL()
        {
            dtClass = PubData.GetDataTable("caipu_class");

            pageClassName = Fn.GetDataTableFind(dtClass, id, "ClassName").ToString();

            PathList(); //分类列表
            ListTJ();   //推荐
            List();     //产品列表

            GetClassPath gcp = new GetClassPath(GetURL.CaiPu.Class("{0}"));
            ClassPath    cp  = new ClassPath(dtClass, gcp);

            cp.Exe(id);
            this.curPath.Text = " &gt; <a href=\"" + GetURL.CaiPu.Default() + "\">烹饪课堂</a>" + gcp.GetPath;
        }
Ejemplo n.º 8
0
        private void LL()
        {
            dtClass = PubData.GetDataTable("pro_class");

            pageClassName = Fn.GetDataTableFind(dtClass, id, "ClassName").ToString();

            ListTJ(); //推荐
            List();   //产品列表

            GetClassPath gcp = new GetClassPath(GetURL.Pro.Class("{0}"));
            ClassPath    cp  = new ClassPath(dtClass, gcp);

            cp.Exe(id);

            foreach (int cid in gcp.PathListID)
            {
                oneLevelClassID = cid;
            }
            this.curPath.Text = gcp.GetPath;

            PathList();//分类列表
        }