Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxNetSalesHelper wx  = new WxNetSalesHelper("http://yelioa.top/mSalesReport.aspx");
        string           res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }

        string action = Request.Form["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getPrepaidData")
            {
                Response.Write(getPrepaidData());
            }
            else if (action == "updatePrepaidData")
            {
                Response.Write(updatePrepaidData());
            }

            Response.End();
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxNetSalesHelper wx  = new WxNetSalesHelper("http://yelioa.top/mNetSalesApproval.aspx");
        string           res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }

        String action = Request.Params["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getDatalist")
            {
                Response.Write(getDataList());
            }
            else if (action == "getProcessInfo")
            {
                Response.Write(getProcessInfo());
            }
            else if (action == "getProcessStage")
            {
                Response.Write(getProcessStage());
            }
            else if (action == "getDetails")
            {
                Response.Write(getDetails());
            }
            else if (action == "getApprovalRecord")
            {
                Response.Write(getApprovalRecord());
            }
            else if (action == "beginApproval")
            {
                Response.Write(beginApproval());
            }
            else if (action == "getSubDataList")
            {
                Response.Write(getSubDataList());
            }
            else if (action == "returnDocument")
            {
                Response.Write(returnDocument());
            }
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxNetSalesHelper wx  = new WxNetSalesHelper("http://yelioa.top/mNetSalesApproval.aspx");
        string           res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
        string action = Request.Form["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if ("getData".Equals(action))
            {
                Response.Write(getData());
            }
            else if ("saveData".Equals(action))
            {
                Response.Write(saveData());
            }
            else if ("getExcel".Equals(action))
            {
                Response.Write(getExcel());
            }
            else if ("importExcel".Equals(action))
            {
                Response.Write(importExcel());
            }
            else if ("getSector".Equals(action))
            {
                Response.Write(getSector());
            }
            Response.End();
        }
    }