private void UpdateTaskListTotal(HttpContext context)
        {
            BLL.TaskTotal   bll   = new BLL.TaskTotal();
            Model.TaskTotal model = new Model.TaskTotal();
            model                 = bll.GetModel(Convert.ToInt32(context.Request["TT_ID"]));
            model.TT_ID           = Convert.ToInt32(context.Request["TT_ID"]);
            model.TT_Release      = context.Request["TT_Release"];
            model.TT_BuildType    = context.Request["TT_BuildType"];
            model.TT_TaskStyle    = context.Request["TT_TaskStyle"];
            model.TT_TaskType     = context.Request["TT_TaskType"];
            model.TT_CU           = context.Request["TT_CU"];
            model.TT_BuildNum     = context.Request["TT_BuildNum"];
            model.TT_CaseTotalNum = context.Request["TT_CaseTotalNum"];
            model.TT_DateStart    = Convert.ToDateTime(context.Request["TT_DateStart"]).ToString("yyyy-MM-dd");
            model.TT_DateEnd      = Convert.ToDateTime(context.Request["TT_DateEnd"]).ToString("yyyy-MM-dd");
            model.TT_Comments     = context.Request["TT_Comments"];
            model.TT_ServerClient = context.Request["TT_ServerClient"];
            bool UpdateResult = bll.Update(model);

            if (UpdateResult)
            {
                context.Response.Write("success");
            }
            else
            {
                context.Response.Write("fail");
            }
        }
        private void GetTaskTotalInfoSingle(HttpContext context)
        {
            BLL.TaskTotal   bll   = new BLL.TaskTotal();
            Model.TaskTotal model = new Model.TaskTotal();
            model = bll.GetModel(Convert.ToInt32(context.Request["id"]));
            List <Model.TaskTotal> list = new List <Model.TaskTotal>();

            list.Add(new Model.TaskTotal
            {
                TT_ID             = model.TT_ID,
                TT_Release        = model.TT_Release,
                TT_CU             = model.TT_CU,
                TT_BuildType      = model.TT_BuildType,
                TT_BuildNum       = model.TT_BuildNum,
                TT_TaskType       = model.TT_TaskType,
                TT_CaseTotalNum   = model.TT_CaseTotalNum,
                TT_CaseRealRunNum = model.TT_CaseRealRunNum,
                TT_DateStart      = Convert.ToDateTime(model.TT_DateStart).ToString("MM/dd/yyyy"),
                TT_DateEnd        = Convert.ToDateTime(model.TT_DateEnd).ToString("MM/dd/yyyy"),
                TT_Date           = Convert.ToDateTime(model.TT_DateStart).ToString("dd/MM/yyyy") + " - " + Convert.ToDateTime(model.TT_DateEnd).ToString("dd/MM/yyyy"),
                TT_TaskStyle      = model.TT_TaskStyle,
                TT_BugIssueNum    = model.TT_BugIssueNum,
                TT_ReportLink     = model.TT_ReportLink,
                TT_Comments       = model.TT_Comments,
                TT_CreateDate     = model.TT_CreateDate,
                TT_TaskProgress   = model.TT_TaskProgress + '%',
                TT_TaskStatus     = model.TT_TaskStatus,
                TT_HaveScenario   = model.TT_HaveScenario,
                TT_TimeStart      = string.IsNullOrEmpty(model.TT_TimeStart) ? "Task Not Start" : model.TT_TimeStart,
                TT_TimeEnd        = string.IsNullOrEmpty(model.TT_TimeEnd) ? "Task Not End" : model.TT_TimeEnd,
                TT_TimeUsed       = Minute2Day(model.TT_TimeUsed),
                TT_Title          = model.TT_Title,
                TT_CompleteReason = model.TT_CompleteReason,
                TT_ServerClient   = model.TT_ServerClient
            });
            JavaScriptSerializer jss = new JavaScriptSerializer();
            string strJson           = jss.Serialize(list);

            strJson = strJson.Replace("[", "").Replace("]", "");
            context.Response.Write(strJson);
        }