예제 #1
0
 public void State()
 {
     this.DropDownList2.DataSource     = AdminsalePManager.GetSatate();
     this.DropDownList2.DataTextField  = "StateName";
     this.DropDownList2.DataValueField = "StateID";
     this.DropDownList2.DataBind();
 }
예제 #2
0
파일: adminP.ashx.cs 프로젝트: SubNing/ERP
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int             count = Convert.ToInt32(context.Request["rows"].ToString());
            int             index = Convert.ToInt32(context.Request["page"].ToString());
            List <addorder> list  = AdminsalePManager.GetAll(count, index);

            context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
        }
예제 #3
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string outid = context.Request["outid"].ToString();
            string ios   = outid.Substring(0, outid.LastIndexOf(','));
            bool   rows  = AdminsalePManager.GetDelete(ios);
            bool   row   = AdminsalePManager.GetDelete1(ios);

            context.Response.Write(rows);
            context.Response.Write(row);
        }
예제 #4
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            addorder ad = new addorder();

            ad.OutID = context.Request["OutID"].ToString();
            ad.State = context.Request["statename"].ToString();
            bool rows = AdminsalePManager.GteUpdata(ad);

            context.Response.Write(rows);
        }
예제 #5
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int    count     = Convert.ToInt32(context.Request["rows"].ToString());
            int    index     = Convert.ToInt32(context.Request["page"].ToString());
            string outid     = context.Request["outid"].ToString();
            int    statename = Convert.ToInt32(context.Request["statename"].ToString());
            string create    = context.Request["create"].ToString();
            string tradetime = context.Request["tradetime"].ToString();

            if (outid != "" && create == "" && tradetime == "" && statename == null)
            {
                List <addorder> list = AdminsalePManager.GetSe(count, index, outid);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
            else if (outid == "" && create != "" && tradetime != "" && statename == null)
            {
                List <addorder> list = AdminsalePManager.GetSel(count, index, create, tradetime);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
            else if (outid == "" && create == "" && tradetime == "" && statename != null)
            {
                List <addorder> list = AdminsalePManager.GetS(count, index, statename);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
            else if (outid != "" && create != "" && tradetime != "" && statename == null)
            {
                List <addorder> list = AdminsalePManager.GetSele(count, index, outid, create, tradetime);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
            else if (outid != "" && create == "" && tradetime == "" && statename != null)
            {
                List <addorder> list = AdminsalePManager.GetSelec(count, index, outid, statename);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
            else if (outid == "" && create != "" && tradetime != "" && statename != null)
            {
                List <addorder> list = AdminsalePManager.GetSelectd(count, index, create, tradetime, statename);
                context.Response.Write("{\"total\":\"" + AdminsalePManager.GetHang() + "\",\"rows\":" + JsonConvert.SerializeObject(list) + "}");
            }
        }