"景先生毕设|www.jxszl.com

C# BusinessObjects类代码示例

2023-12-29 17:37编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中BusinessObjects类的典型用法代码示例。如果您正苦于以下问题:C#BusinessObjects类的具体用法?C#BusinessObjects怎么用?C#BusinessObjects使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:EditOrCreate publicActionResultEditOrCreate(BusinessObjects.WorkManagement.CustomernewInstance) { stringuserID="SYSTEM"; try { boolhasLocationContentChanged=false; if(newInstance.BillingAddress!=null&&newInstance.BillingAddress.ID>0) { stringserialized=(Server.HtmlDecode(Request["originalModel"])); /* //TestthatRequest["originalModel"]isactuallyaserializedLocationinstance System.Xml.XmlDocumentxml=newSystem.Xml.XmlDocument(); xml.LoadXml(serialized); BusinessObjects.WorkManagement.LocationoriginalContent=null; originalContent=(BusinessObjects.WorkManagement.Location)BusinessObjects.Base.Deserialize(typeof(BusinessObjects.WorkManagement.Location),xml); */ hasLocationContentChanged=(serialized!=newInstance.BillingAddress.Serialize()); } newInstance.HasLocationChanged=hasLocationContentChanged; _modelContext.SaveCustomer(newInstance,userID); returnRedirectToAction("Index"); } catch { returnView(); } }
原文链接:http://www.jxszl.com/biancheng/C/556618.html