Beispiel #1
0
        public void ProcessRequest(HttpContext context)
        {
            HttpRequest     rp      = context.Request;
            WorkInfoManager manager = new WorkInfoManager();

            WhereClip where = WorkHandLog._.WorkID == rp["WorkID"];// WorkHandLog._.DownEr == new Guid(context.Session["UserID"].ToString());
            DataTable dt     = manager.GetDaiBanDataTable(where, WorkHandLog._.HandSequence.Asc && WorkHandLog._.HandDate.Desc);
            string    result = JsonConvert.Convert2Json(dt);

            context.Response.Write(result);
            context.Response.End();
        }
Beispiel #2
0
        private void GerneraotrDaiBan(string UserId)
        {
            string          tem = @"  <tr class='{6}'>
                                <td align='center'>
                                    {0}
                                </td>
                                <td>
                                    {1}
                                </td>
                                <td align='center'>
                                    {2}
                                </td>
                                <td align='center'>
                                   {3}
                                </td>
                                <td align='center'>
                                    {4}
                                </td>
                                <td align='center'>
                                    <a href='WorkHandLogEdit.aspx?ID={5}'>办理</a>
                                </td>
                            </tr>";
            WorkInfoManager manager = new WorkInfoManager();
            int             pageCount = 0, recordCount = 0;
            DataTable       dt = manager.GetDaiBanDataTable(1, 5, WorkHandLog._.DownEr == new Guid(Session["UserID"].ToString()), WorkHandLog._.HandDate.Desc, ref pageCount, ref recordCount);
            StringBuilder   sb = new StringBuilder();
            int             i  = 1;

            foreach (DataRow item in dt.Rows)
            {
                string temodd = odd_bg;
                if (i % 2 == 0)
                {
                    temodd = "";
                }
                sb.AppendFormat(tem, i++, item["GuZhangXx"], ((DateTime)item["HandDate"]).ToString("yyyy-MM-dd"), item["UpName"], item["Status"], item["WorkID"], temodd);
            }
            DaiBanRenWU = sb.ToString();
        }