protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mPointApply",
                                   "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                   "1000009",
                                   "http://yelioa.top/mUndeliverReport.aspx");
        UserInfo user = new UserInfo();
        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 == "UndeliverReport")
            {
                GetUndeliverReport();
            }
            Response.End();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mPointApply",
                                   "i0SFeOuq3eonsbAWYfmAnrB0k_4K5d3Ub7Y6Z-KkYrc",
                                   "1000008",
                                   "http://yelioa.top/mPointApply.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 == "initdatagrid1")
            {
                Initdatagrid("initdatagrid1");
            }
            else if (action == "initdatagrid2")
            {
                Initdatagrid("initdatagrid2");
            }
            Response.End();
        }
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //WxNetSalesHelper wx = new WxNetSalesHelper("http://yelioa.top/mFlowManager.aspx");
        WxCommon wx = new WxCommon("mSalesData",
                                   "Zg8Be_YI2m56f5i1u3IWOeJaUtLccRkzc4Ivniv0vco",
                                   "1000003",
                                   "http://yelioa.top/mFlowManager.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 == "getDetailData")
            {
                Response.Write(getDetailData());
            }

            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mFinanceApprovalRecord",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mFinanceApprovalRecord.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 == "getInfos")
            {
                Response.Write(getInfo());
            }
            else if (action == "getStatistics")
            {
                Response.Write(getStatistics());
            }
            Response.End();
        }
    }
    public static string updateActualFee(ArrayList list)
    {
        ArrayList codeList      = new ArrayList();
        ArrayList actualFeeList = new ArrayList();

        foreach (Dictionary <string, string> dict in list)
        {
            if (dict != null)
            {
                codeList.Add(dict["Id"].ToString());
                actualFeeList.Add(dict["ApprovalNumber"].ToString());
            }
            else
            {
                codeList.Add("");
                actualFeeList.Add("");
            }
        }

        string res = OperationDeliverSrv.updateActualFee(list);

        OperationDeliverSrv.UpdateOperationApprovalTime(codeList);

        // 插入一条数据到销售日表中
        OperationDeliverSrv.insertSalesData(codeList);

        string[]  msgs   = res.Split(';');
        DataTable dtUser = ReimbursementSrv.GetUserNameAndWxUserId();
        WxCommon  wx     = new WxCommon("DeliverApplyReport",
                                        "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                        "1000009",
                                        "");

        for (int i = 0; i < msgs.Length - 1; i++)
        {
            SqlExceRes sqlRes = new SqlExceRes(msgs[i]);
            if (sqlRes.Result == SqlExceRes.ResState.Success)
            {
                Dictionary <string, string> dict = (Dictionary <string, string>)list[i];
                string WxUserId = "";
                foreach (DataRow row in dtUser.Rows)
                {
                    if (row["userName"].ToString() == dict["ApprovalName"])
                    {
                        WxUserId = row["wechatUserId"].ToString();
                        break;
                    }
                }
                if (!string.IsNullOrEmpty(WxUserId))
                {
                    // 发送审批的消息给提交者
                    wx.SendWxMsg(WxUserId, "审批通知", "您编号为" + codeList[i] + "的发货单据已被运营部进行实发数量复审,审批人为:"
                                 + dict["ApprovalName"] + ",实发数量为" + actualFeeList[i] + ",请知悉"
                                 , "http://yelioa.top//mDeliverApplyReportAppRoval.aspx?type=0&docCode=" + codeList[i]);
                }
            }
        }

        return(res);
    }
Example #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "Zg8Be_YI2m56f5i1u3IWOeJaUtLccRkzc4Ivniv0vco",
                                   "1000003",
                                   "http://yelioa.top/mFeeReport.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 == "department")
            {
                Response.Write(getFeeDetailTree());
            }

            //else if (action == "updateDifferReason")
            //{
            //    Response.Write(updateDifferReason());
            //}
            Response.End();
        }
    }
Example #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "E26TbitJpOlsniJaKMq6lrNYhiu1bKVtRddflNwIsoE",
                                   "1000015",
                                   "http://yelioa.top/mFormIndex.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

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

            Response.End();
        }
    }
    public static string updateReceiptCode(List <string> ids, string receiptCode)
    {
        string msg = OperationDeliverSrv.updateReceiptCode(ids, receiptCode);

        DataSet ds = new DataSet();

        if ((msg.Length - msg.Replace("操作成功", "").Length) / "操作成功".Length == ids.Count)
        {
            ds = OperationDeliverSrv.GetwechatUserId(ids);
            WxCommon wx = new WxCommon("DeliverApplyReport",
                                       "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                       "1000009",
                                       "");
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow row in ds.Tables[0].Rows)
                {
                    wx.SendWxMsg(row["wechatUserid"].ToString(), "发票单号更新通知", "您编号为" + row["Id"] + "的发货单据发票单号为:'" + receiptCode + "',请知悉。",
                                 "http://yelioa.top//mDeliverApplyReportAppRoval.aspx?type=0&docCode=" + row["Id"]);
                }
            }
        }

        return(msg);
    }
Example #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mMobileReimbursement",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mDeliverRelated.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        //if (HasRight(user.wechatUserId) == 0)
        //    return;
        string action = Request.Form["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getData")
            {
                GetData();
            }
            Response.End();
        }
    }
Example #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "Zg8Be_YI2m56f5i1u3IWOeJaUtLccRkzc4Ivniv0vco",
                                   "1000003",
                                   "http://yelioa.top/mEmailDetail.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 == "loadDetail")
            {
                Response.Write(loadDetail());
            }
            else if (action == "replyOrForwordEmail")
            {
                Response.Write(replyOrForwordEmail());
            }
            Response.End();
        }
    }
Example #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mFinanceReimburseDetail",
                                   "v5afj_CYpboe-JWNOrCU0Cy-xP5krFq6cWYM9KZfe4o",
                                   "1000020",
                                   "http://yelioa.top/mFinanceReimburseDetail.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["action"];

        userInfo = (UserInfo)Session["user"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getSelfReimburseList")
            {
                Response.Write(getSelfReimburseList());
            }
            else if (action == "getSalesOrNotSales")
            {
                Response.Write(getSalesOrNotSales());
            }
            else if (action == "uploadFile")
            {
                Response.Write(uploadFile());
            }
            else if (action == "submit")
            {
                Response.Write(submit());
            }
            else if (action == "draft")
            {
                Response.Write(draft());
            }
            else if (action == "getReSubmitData")
            {
                Response.Write(getReSubmitData());
            }
            else if (action == "getDraftData")
            {
                Response.Write(getDraftData());
            }
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                   "1000009",
                                   "http://yelioa.top/web/cost_sharing/update_basic_cost_sharing/mUpdateBasicCostSharing.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        if (!"POST".Equals(Request.RequestType))
        {
            return;
        }

        jObject = HttpHelper.getAjaxData(Request);

        string action = jObject["action"].ToString();

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();

            if (action == "getFormColumnsAndData")
            {
                Response.Write(getFormColumnsAndData());
            }
            else if (action == "submissionOfCostSharingUpdating")
            {
                Response.Write(submissionOfCostSharingUpdating());
            }
            else if (action == "queryRelatedBranch")
            {
                Response.Write(queryRelatedBranch());
            }
            else if (action == "getRelativeProduct")
            {
                Response.Write(getRelativeProduct());
            }

            Response.End();
        }
    }
Example #13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "E26TbitJpOlsniJaKMq6lrNYhiu1bKVtRddflNwIsoE",
                                   "1000015",
                                   "http://yelioa.top/mFormDetail.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        UserInfo userInfo = (UserInfo)Session["user"];

        post = SqlHelper.Find("select post from users where userId = '" + userInfo.userId + "'").Tables[0].Rows[0][0].ToString();

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

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "findFormById")
            {
                Response.Write(findFormById());
            }
            else if (action == "findRemoteUrl")
            {
                Response.Write(findRemoteUrl());
            }
            else if (action == "getProcessInfo")
            {
                Response.Write(getProcessInfo());
            }
            else if (action == "submitForm")
            {
                Response.Write(submitForm());
            }
            else if (action == "showDraftData")
            {
                Response.Write(showDraftData());
            }

            Response.End();
        }
    }
Example #14
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mPointApply",
                                   "i0SFeOuq3eonsbAWYfmAnrB0k_4K5d3Ub7Y6Z-KkYrc",
                                   "1000008",
                                   "http://yelioa.top/mPointApply.aspx");
        UserInfo user = new UserInfo();
        string   res  = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
        if (Common.GetApplicationValid("mPointApply.aspx") == "0")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>location.href='Default.aspx';</script>");
            Response.End();
            return;
        }
        user = (UserInfo)Session["user"];
        DataSet ds = SqlHelper.Find("select PointApply from new_right where wechatUserId='" + user.wechatUserId + "'");

        if (ds == null || ds.Tables[0].Rows.Count == 0 || ds.Tables[0].Rows[0][0].ToString() == "0")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('抱歉,您无访问此页面的权限!')</script>");
            Response.End();
            return;
        }
        string action = Request.Form["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "applypoint")
            {
                Response.Write(ApplyPoint((int)ds.Tables[0].Rows[0][0]));
            }
            else if (action == "findTarget")
            {
                FindTarget();
            }
            Response.End();
        }
    }
Example #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mPointApply",
                                   "i0SFeOuq3eonsbAWYfmAnrB0k_4K5d3Ub7Y6Z-KkYrc",
                                   "1000008",
                                   "http://yelioa.top/mSendEmail.aspx");
        UserInfo user = new UserInfo();
        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 == "uploadAttachment")
            {
                uploadAttachment();
            }
            else if (action == "findTarget")
            {
                FindTarget();
            }
            else if (action == "saveDraft")
            {
                saveDraft();
            }
            else if (action == "sendEmail")
            {
                sendEmail();
            }
            else if (action == "initUserTree")
            {
                InitUserTree();
            }
            else if (action == "deleteDraft")
            {
                deleteDraft();
            }
            Response.End();
        }
    }
Example #16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mPointApply",
                                   "i0SFeOuq3eonsbAWYfmAnrB0k_4K5d3Ub7Y6Z-KkYrc",
                                   "1000008",
                                   "http://yelioa.top/mEmailGroupSetting.aspx");
        UserInfo user = new UserInfo();
        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 == "GetGroupList")
            {
                GetGroupList();
            }
            else if (action == "getUsers")
            {
                getUsers();
            }
            else if (action == "DeleteGroup")
            {
                DeleteGroup();
            }
            else if (action == "Submit")
            {
                Submit();
            }
            //else if (action == "initUserTree")
            //{
            //    InitUserTree();
            //}
            //else if (action == "deleteDraft")
            //{
            //    deleteDraft();
            //}
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mMobileReimbursement",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mDeliverApplyReportApproval.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 (Request.Params["type"] != null)
        {
            type = Request.Params["type"];
        }

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "myapply")
            {
                Myapply();
            }
            else if (action == "pending")
            {
                Pending();
            }
            else if (action == "approval")
            {
                Response.Write(approval());
            }
            else if (action == "getDocument")
            {
                Response.Write(getDocument());
            }
            else if (action == "getAttachmentAndProcess")
            {
                Response.Write(getAttachmentAndProcess());
            }
            Response.End();
        }
    }
Example #18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                   "1000009",
                                   "http://yelioa.top/web/expect_flow_submit/mExpectFlowApprovalIndex.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
    }
Example #19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                   "1000009",
                                   "http://yelioa.top/mDeliverApplyReport.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
        //if (Common.GetApplicationValid("mDeliverApplyReport.aspx") == "0")
        //{
        //    Response.Clear();
        //    Response.Write("<script language='javascript'>location.href='Default.aspx';</script>");
        //    Response.End();
        //    return;
        //}

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

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "insertDeliverApplyReport")
            {
                Response.Write(insertDeliverApplyReport());
            }
            else if (action == "getProcessInfo")
            {
                Response.Write(getProcessInfo());
            }
            else if (action == "findDeliverType")
            {
                Response.Write(findDeliverType());
            }
            else
            {
                Response.Write(find(action));
            }
            Response.End();
        }
    }
Example #20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mMobileReimbursement",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mFormListAndDetail.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        userInfo = (UserInfo)Session["user"];

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

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getData")
            {
                Response.Write(GetData());
            }
            else if (action == "getDetail")
            {
                Response.Write(GetDetail());
            }
            else if (action == "back")
            {
                Response.Write(Back());
            }
            else if (action == "approve")
            {
                Response.Write(Approve());
            }
            else if (action == "downloadExcel")
            {
                DownloadExcel();
            }
            Response.End();
        }
    }
Example #21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mDailyProfit",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mDailyProfit.aspx");

        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
        List <DepartmentPost> departmentPostList = (List <DepartmentPost>)Session["DepartmentPostList"];

        departmentName = SqlHelper.Find("select name from department where id = " + departmentPostList[0].departmentId)
                         .Tables[0].Rows[0][0].ToString();

        if (!departmentName.Contains("销售部"))
        {
            departmentName = "销售部";
        }

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

        if (!string.IsNullOrEmpty(action))
        {
            if (action.Equals("getData"))
            {
                Response.Write(getData());
            }
            else if (action.Equals("getDepartment"))
            {
                Response.Write(getDepartment());
            }
            else if (action.Equals("getParentDepartment"))
            {
                Response.Write(getParentDepartment());
            }
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mMobileReimbursement",
                                   "AirlZ8lfY50d1KGDklHPQcLV2RUFAdrhD-WXU23cA-w",
                                   "1000013",
                                   "http://yelioa.top/mDemandApplyReportApproval.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 (Request.Params["type"] != null)
        {
            type = Request.Params["type"];
        }

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "myapply")
            {
                Myapply();
            }
            else if (action == "pending")
            {
                Pending();
            }
            else if (action == "approval")
            {
                Response.Write(approval());
            }
            else if (action == "getDocument")
            {
                Response.Write(getDocument());
            }
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mApprovalReimburseDetail",
                                   "v5afj_CYpboe-JWNOrCU0Cy-xP5krFq6cWYM9KZfe4o",
                                   "1000020",
                                   "http://yelioa.top/mApprovalReimburseDetail.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["action"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getList")
            {
                Response.Write(getList());
            }
            else if (action == "getDetail")
            {
                Response.Write(getDetail());
            }
            else if (action == "agree")
            {
                Response.Write(agree());
            }
            else if (action == "disagree")
            {
                Response.Write(disagree());
            }
            else if (action == "getSalesOrNotSales")
            {
                Response.Write(getSalesOrNotSales());
            }
            Response.End();
        }
    }
Example #24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "Zg8Be_YI2m56f5i1u3IWOeJaUtLccRkzc4Ivniv0vco",
                                   "1000003",
                                   "http://yelioa.top/mEmailIndex.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

        if (res != "success")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>alert('" + res + "')</script>");
            Response.End();
            return;
        }
        if (Common.GetApplicationValid("mEmailIndex.aspx") == "0")
        {
            Response.Clear();
            Response.Write("<script language='javascript'>location.href='Default.aspx';</script>");
            Response.End();
            return;
        }

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

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getAllNumbers")
            {
                Response.Write(getAllNumbers());
            }
            else if (action == "createEmail")
            {
                Response.Write(createEmail());
            }
            else if (action == "searchEmail")
            {
                Response.Write(searchEmail());
            }
            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mSalesData",
                                   "vvsnJs9JYf8AisLWOE4idJbdR1QGc7roIcUtN6P2Lhc",
                                   "1000009",
                                   "http://yelioa.top/web/expect_flow_submit/mExpectFlowApprovalDetail.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        if (!"POST".Equals(Request.RequestType))
        {
            return;
        }

        jObject = HttpHelper.getAjaxData(Request);

        string action = jObject["action"].ToString();

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();

            if (action == "getApprovalDataDetail")
            {
                Response.Write(getApprovalDataDetail());
            }
            else if (action == "submitExpectFlow")
            {
                Response.Write(submitExpectFlow());
            }

            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mMySubmittedReimburse",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mMySubmittedReimburse.aspx");
        string res    = wx.CheckAndGetUserInfo(HttpContext.Current);
        string action = Request.Form["act"];

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "getInfos")
            {
                Response.Write(getInfos());
            }
            else if (action == "getDocument")
            {
                Response.Write(getDocument());
            }
            else if (action == "getProcessInfoAndAttachment")
            {
                Response.Write(getProcessInfoAndAttachment());
            }
            else if (action == "cancel")
            {
                Response.Write(cancel());
            }
            else if (action == "DownloadExcel")
            {
                //Response.Write(DownloadExcel());
                DownloadExcel();
            }
            else if (action == "getStatistics")
            {
                Response.Write(getStatistics());
            }

            Response.End();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("BudgetSubmitDetail",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/web/budget_submit/BudgetDistributeDetail.aspx");
        string res = wx.CheckAndGetUserInfo(HttpContext.Current);

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

        if (!"POST".Equals(Request.RequestType))
        {
            return;
        }

        jObject = HttpHelper.getAjaxData(Request);

        string action = jObject["action"].ToString();

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();

            if (action == "getDepartmentDistributeDetail")
            {
                Response.Write(getDepartmentDistributeDetail());
            }
            else if (action == "distributeBudget")
            {
                Response.Write(distributeBudget());
            }

            Response.End();
        }
    }
Example #28
0
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mFinanceReimburse",
                                   "UM0i5TXSIqQIOWk-DmUlfTqBqvZAfbZdGGDKiFZ-nRk",
                                   "1000006",
                                   "http://yelioa.top/mFinanceReimburse.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 (Common.GetApplicationValid("mFinanceReimburse.aspx") == "0" && !"uploadReimburseImage".Equals(action) && !"deleteReimburseImage".Equals(action))
        //{
        //    Response.Clear();
        //    Response.Write("<script language='javascript'>location.href='Default.aspx';</script>");
        //    Response.End();
        //    return;
        //}

        if (!string.IsNullOrEmpty(action))
        {
            Response.Clear();
            if (action == "uploadImage")
            {
                //Response.Write(AliAiInvoice());
                //Response.Write(JxHandWriting("",""));
                Response.Write(HnQuotaInvoiceOrcTest());
            }
            Response.End();
        }
    }
Example #29
0
    private void sendEmail()
    {
        string   emailId = Request.Form["emailId"];
        UserInfo user    = (UserInfo)Session["user"];
        WxCommon wx      = new WxCommon("mSendEmail", "Wnn6eWDVIeZtNd8Bt69Kx3VNvICci-cH-TSHPwpXkYQ", "1000012", "http://yelioa.top/mSendEmail.aspx");
        JObject  SendRes = JObject.Parse(EmailHelper.SendEmail(emailId));
        string   res     = "";

        if (SendRes["ErrCode"].ToString() == "0")
        {
            JObject jObject = new JObject();
            jObject.Add("title", "邮件通知");
            jObject.Add("description", "您收到一封来自《"
                        + SendRes["SendName"].ToString() + "》,</br>主题为《" + SendRes["Subject"].ToString() + "》的邮件。</br>请注意查收!");
            jObject.Add("url", "http://yelioa.top/mEmailDetail.aspx?id=" + emailId);
            res = wx.SendWxMsg(SendRes["recipientId"].ToString(), "textcard", jObject);
        }
        else
        {
            res = SendRes.ToString();
        }
        Response.Write(res);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WxCommon wx = new WxCommon("mCompanyFeeApproval",
                                   "vbmKxak1-a5Ty1cEBJzUFa1OR9f0V4Yh5j0sJq2-e9o",
                                   "1000023",
                                   "http://yelioa.top/mCompanyFeeApproval.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 == "getApprovalNum")
            {
                Response.Write(getApprovalNum());
            }
            else if (action == "getData")
            {
                Response.Write(getData());
            }
            else if (action == "approve")
            {
                Response.Write(approve());
            }
            Response.End();
        }
    }