示例#1
0
 public SearchResult SearchCustomerFollowUp(Sender sender, SearchCustomerFollowUpArgs args)
 {
     try
     {
         using (ObjectProxy op = new ObjectProxy())
         {
             return(op.SearchCustomerFollowUp(args));
         }
     }
     catch (Exception ex)
     {
         PLogger.LogError(ex);
         throw ex;
     }
 }
示例#2
0
        public void SearchFollowUps()
        {
            try
            {
                using (ProxyBE p = new ProxyBE())
                {
                    SearchCustomerFollowUpArgs args = new SearchCustomerFollowUpArgs();
                    args.OrderBy = "[Created] Desc";
                    if (!string.IsNullOrEmpty(Request["FollowType"]))
                    {
                        args.FollowType = Request["FollowType"].ToString();
                    }
                    if (!string.IsNullOrEmpty(Request["CustomerName"]))
                    {
                        args.CustomerName = Request["CustomerName"].ToString();
                    }
                    if (!string.IsNullOrEmpty(parm.Title))
                    {
                        args.Title = parm.Title;
                    }
                    if (CurrentUser.PartnerID != Guid.Empty)
                    {
                        args.PartnerID = CurrentUser.PartnerID;
                    }
                    args.RowNumberFrom = pagingParm.RowNumberFrom;
                    args.RowNumberTo   = pagingParm.RowNumberTo;

                    SearchResult sr = p.Client.SearchCustomerFollowUp(SenderUser, args);
                    Response.Write(JSONHelper.Dataset2Json(sr.DataSet));
                }
            }
            catch (Exception ex)
            {
                //WriteError(ex.Message, ex);
                Response.Write(ex);
            }
        }