当前位置: 首页>>代码示例>>C#>>正文


C# Helper.LogException方法代码示例

本文整理汇总了C#中Helper.LogException方法的典型用法代码示例。如果您正苦于以下问题:C# Helper.LogException方法的具体用法?C# Helper.LogException怎么用?C# Helper.LogException使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helper的用法示例。


在下文中一共展示了Helper.LogException方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SaveCustomer

 // Save New Customer data (Booking or sale)
 public HttpResponseMessage SaveCustomer(FlatSale newCust)
 {
     int ii = newCust.PlanID.Value;
     try
     {
         if (newCust.AppTitle == null) newCust.AppTitle = "";
         if (newCust.AppFName == null) newCust.AppFName = "";
         if (newCust.AppMName == null) newCust.AppMName = "";
         if (newCust.AppLName == null) newCust.AppLName = "";
         if (newCust.CoTitle == null) newCust.CoTitle = "";
         if (newCust.CoFName == null) newCust.CoFName = "";
         if (newCust.CoMName == null) newCust.CoMName = "";
         if (newCust.CoLName == null) newCust.CoLName = "";
         DateTimeFormatInfo dtinfo = new DateTimeFormatInfo();
         dtinfo.DateSeparator = "/";
         dtinfo.ShortDatePattern = "dd/MM/yyyy";
         newCust.BookingDate = Convert.ToDateTime(newCust.SrtSaleDate, dtinfo);
         //newCust.BookingDate = newCust.SaleDate;
         int i = SbpEntity.INSERT_RBookFlat(newCust.FlatName, newCust.SaleDate, newCust.BookingAmount, newCust.AppFName, newCust.AppMName, newCust.AppLName, newCust.Title,
         newCust.PName, newCust.Address1, newCust.Address2, newCust.City, newCust.Distt, newCust.State, newCust.Country, newCust.AppPAN, newCust.MobileNo, newCust.DateOfBirth,
         newCust.CoFName, newCust.CoMName, newCust.CoLName, newCust.CoAddress1,
         newCust.CoAddress2, newCust.CoCity, newCust.CoState, newCust.CoCountry, newCust.CoPAN, newCust.CoMobileNo, newCust.AlternateMobile, newCust.LandLine,
         newCust.EmailID, newCust.AlternateEmail, newCust.LoanAmount, newCust.LienField, newCust.BankID, newCust.IsPAN,
         newCust.IsPhoto, newCust.IsAddressPf, newCust.Type, newCust.CustomerID, newCust.SecCoFName, newCust.SecCoMName, newCust.SecCoLName, newCust.SecCoAddress1,
         newCust.SecCoAddress2, newCust.SecCoCity, newCust.SecCoState, newCust.SecCoCountry, newCust.SecCoMobileNo, newCust.SecCoPAN,
         newCust.CoTitle, newCust.CoPName, newCust.SecCoTitle, newCust.SecCoPName, newCust.IsConstruction, newCust.AppTitle, newCust.CoAppTitle, newCust.SecCoAppTitle, newCust.IsRationCard, newCust.IsDrivingLicence, newCust.IsVoterCard, newCust.IsPassport, newCust.PhotoImagePath, newCust.AddPfImagePath, newCust.DVImagePath, newCust.VoterCardImagePath, newCust.PassportImagePath,
         newCust.RationCardImagePath, newCust.Remarks, newCust.CoDOB, newCust.SecCoDOB, newCust.PANImagePath, newCust.CoIsPAN, newCust.CoIsPhoto, newCust.CoIsAddressPf, newCust.CoIsRationCard, newCust.CoIsDrivingLicence, newCust.CoIsVoterCard, newCust.CoIsPassport, newCust.CoPhotoImagePath, newCust.CoAddPfImagePath, newCust.CoDVImagePath, newCust.CoVoterCardImagePath, newCust.CoPhotoImagePath,
         newCust.CoRationCardImagePath, newCust.CoPANImagePath, newCust.SecCoIsPAN, newCust.SecCoIsPhoto, newCust.CoIsAddressPf, newCust.SecCoIsRationCard, newCust.SecCoIsDrivingLicence, newCust.SecCoIsVoterCard, newCust.SecCoIsPassport, newCust.SecCoPhotoImagePath,
         newCust.SecCoAddPfImagePath, newCust.SecCoDVImagePath, newCust.SecCoVoterCardImagePath, newCust.SecCoPhotoImagePath, newCust.SecCoRationCardImagePath, newCust.SecCoPhotoImagePath, newCust.BankBranch, newCust.PinCode, newCust.ExecutiveName, newCust.CoPinCode, newCust.SecCoPinCode, newCust.TransferAmount, newCust.affidavit, newCust.PropertyID, newCust.PaymentFor, newCust.BookingDate, newCust.PropertyTypeID, newCust.PropertySizeID, newCust.PlanID, User.Identity.Name, newCust.SaleRate, newCust.SaleRateInWords);
         DataTable dt = obj.GetDataTable("select FlatID from tblsFlat where FlatName='" + newCust.FlatName + "' and PID='" + newCust.PropertyID + "' and Status=1");
         if (dt.Rows.Count > 0)
         {
             Session["FlatId"] = dt.Rows[0]["FlatID"].ToString();
         }
         else
         {
             Session["FlatId"] = newCust.FlatID;
         }
         Session["PID"] = newCust.PropertyID;
         Session["FlatName"] = newCust.FlatName;
     }
     catch (Exception ex)
     {
         Helper hp = new Helper();
         hp.LogException(ex);
     }
     return new HttpResponseMessage(HttpStatusCode.Created);
 }
开发者ID:devnarayan,项目名称:MyRealtyWeb,代码行数:49,代码来源:SaleFlatServices.cs


注:本文中的Helper.LogException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。