예제 #1
0
        public void SearchSMSLogs()
        {
            try
            {
                using (ProxyBE p = new ProxyBE())
                {
                    SearchSMSLogArgs args = new SearchSMSLogArgs();

                    args.OrderBy       = "Created desc";
                    args.RowNumberFrom = pagingParm.RowNumberFrom;
                    args.RowNumberTo   = pagingParm.RowNumberTo;

                    if (!string.IsNullOrEmpty(Request["CreatedFrom"]))
                    {
                        args.CreatedFrom = Convert.ToDateTime(Request["CreatedFrom"]);
                    }
                    if (!string.IsNullOrEmpty(Request["CreatedTo"]))
                    {
                        args.CreatedTo = Convert.ToDateTime(Request["CreatedTo"]).AddDays(1);
                    }

                    //Where
                    SearchResult sr = p.Client.SearchSMSLogs(SenderUser, args);
                    Response.Write(JSONHelper.Dataset2Json(sr.DataSet));
                }
            }
            catch (Exception ex)
            {
                PLogger.LogError(ex);
                Response.Write(ex.Message);
            }
        }
예제 #2
0
파일: SMSLogBE.cs 프로젝트: godsayyou/Mes-1
 public SearchResult SearchSMSLogs(Sender sender, SearchSMSLogArgs args)
 {
     try
     {
         using (ObjectProxy op = new ObjectProxy())
         {
             return(op.SearchSMSLogs(args));
         }
     }
     catch (Exception ex)
     {
         PLogger.LogError(ex);
         throw ex;
     }
 }