예제 #1
0
        public bool InsetSMS(LogSMSNewData data, bool smsStatus, string requestdetail, string responseDetail)
        {
            this.LogSMSNewRepository = new LogSMSNewRepository(ConfigUtil.CreateSessionFactory());

            this.LogSMSNew               = new LogSMSNew();
            this.LogSMSNew.Agrcode       = data.Agrcode;
            this.LogSMSNew.Branchid      = data.Branchid;
            this.LogSMSNew.Cuscode       = data.Cuscode;
            this.LogSMSNew.Depcode       = data.Depcode;
            this.LogSMSNew.Mobilenumber  = data.Mobilenumber;
            this.LogSMSNew.Remark        = data.Remark;
            this.LogSMSNew.Resultdetail  = data.SMSDetail;
            this.LogSMSNew.Senddate      = DateTime.Now;
            this.LogSMSNew.Senttime      = DateTime.Now.ToString();
            this.LogSMSNew.Smid          = data.Smid;
            this.LogSMSNew.Smsstatus     = smsStatus;
            this.LogSMSNew.Typecode      = data.Typecode;
            this.LogSMSNew.Updatedate    = DateTime.Now;
            this.LogSMSNew.Userid        = data.Userid;
            this.LogSMSNew.RequestDetail = requestdetail;
            this.LogSMSNew.RequestDetail = responseDetail;
            try
            {
                this.LogSMSNewRepository.Insert(this.LogSMSNew);
                return(true);
            }
            catch (Exception ex)
            {
                ex.StackTrace.ToString();
                return(false);
            }
        }