예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UTools.ClearCache();
            if (!Page.IsPostBack)
            {
                String Action = Request["Action"];
                String KeyID  = Request["KeyID"];
                String Remark = Request["Remark"];

                String Result = "failer";

                switch (Action)
                {
                case "Cancel_Tb_Task":                               //取消工单
                    Result = this.CancelTask(KeyID);
                    break;


                case "JieDan_Tb_Task":                              //接单
                    String endDate = Request["endDate"];
                    Result = this.JieDanTask(KeyID, endDate);
                    break;

                case "TuiTask_Tb_Task":                             //退单
                    Result = this.TuiTaskTask(KeyID);
                    break;

                case "SubmitCheck_Tb_Task":                        //提交审核
                    Result = this.SubmitTask(KeyID);
                    break;

                case "Complete_Tb_Task":                            //完成或失败工单
                    int Flag = int.Parse(Request["Flag"]);
                    Result = this.CompleteTask(KeyID, Flag, Remark);
                    break;

                default:
                    break;
                }

                //将结果输出
                Response.Write(Result);
                Response.End();
            }
        }