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


C# ErrorEntity.ToJson方法代码示例

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


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

示例1: SaveProduct

 public void SaveProduct()
 {
     string _productname = Parameters["pproductname"];
     string _productlist = Parameters["pproductlist"];
     string _productmodule = Parameters["pproductmodule"];
     string _productdesc = Parameters["pproductdesc"];
     string _briefpath = Parameters["pbriefpath"];
     string _path = Parameters["ppath"];
     string _briefcontent = Parameters["pbriefcontent"];
     string _content = Parameters["pcontent"];
     string _seotitle = Parameters["pseotitle"];
     string _seokeyword = Parameters["pseokeyword"];
     string _seodesc = Parameters["pseodesc"];
     PortalProduct item = new PortalProduct();
     item.FProductId = 0;
     item.FProductListID = Convert.ToInt64(_productlist);
     item.FProductName = _productname;
     item.FProductModule = _productmodule;
     item.FProductDesc = _productdesc;
     item.FProductPic = _path;
     item.FBriefPic = _briefpath;
     item.FSEOTitle = _seotitle;
     item.FSEOKeyWord = _seokeyword;
     item.FSEODesc = _seodesc;
     item.FProductBrief = _briefcontent;
     item.FProductContent = _content;
     PortalProductBiz biz = new PortalProductBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Insert(item, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:31,代码来源:productcontentadd.aspx.cs

示例2: SaveItem

 public void SaveItem()
 {
     string _positionname = Parameters["ppositionname"];
     string _positiondept = Parameters["ppositiondept"];
     string _positiontype = Parameters["ppositiontype"];
     string _positiongendor = Parameters["ppositiongendor"];
     string _positionnumber = Parameters["ppositionnumber"];
     string _positionbegindate = Parameters["pbegindate"];
     string _positionenddate = Parameters["penddate"];
     string _backcontent = Parameters["pbackcontent"];
     string _content = Parameters["pcontent"];
     string _order = Parameters["porder"];
     string positionid = Parameters["id"];
     PortalPosition item = new PortalPosition();
     PortalPositionBiz biz = new PortalPositionBiz();
     item.FPositionId = Convert.ToInt64(positionid);
     item.FPositionName = _positionname;
     item.FPositionDept = _positiondept;
     item.FPositionType = _positiontype;
     item.FPositionGendor = _positiongendor;
     item.FPositionNum = Convert.ToInt32(_positionnumber);
     item.FBeginDate = Convert.ToDateTime(_positionbegindate);
     item.FEndDate = Convert.ToDateTime(_positionenddate);
     item.FBackContent = _backcontent;
     item.FPositionContent = _content;
     item.FPositionOrder = Convert.ToInt32(_order);
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Update(item, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:30,代码来源:positionedit.aspx.cs

示例3: DelDepartment

 public void DelDepartment()
 {
     string idlist = Parameters["pparm"];
     SysDepartmentBiz biz = new SysDepartmentBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(idlist, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:deptmanage.aspx.cs

示例4: StopModule

 public void StopModule()
 {
     string _moduleflag = Parameters["pmoduleflag"];
     SysModuleBiz biz = new SysModuleBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.UpdateStatus(_moduleflag, "0", out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:usemodule.aspx.cs

示例5: DelNation

 public void DelNation()
 {
     string _parm = Parameters["pparm"];
     SysNationBiz biz = new SysNationBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(_parm, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:nationmanage.aspx.cs

示例6: DeleteUser

 public void DeleteUser()
 {
     string _idstr = Parameters["pparm"];
     SysUserBiz biz = new SysUserBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(_idstr, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:usermanage.aspx.cs

示例7: DelArticle

 public void DelArticle()
 {
     string _parm = Parameters["pparm"];
     PortalArticleBiz biz = new PortalArticleBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(_parm, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:articlecontent.aspx.cs

示例8: DelData

 public void DelData()
 {
     string idlist = Parameters["pparm"];
     PmOrgInfoBiz biz = new PmOrgInfoBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(idlist, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:orgmanage.aspx.cs

示例9: DelList

 public void DelList()
 {
     string idlist = Parameters["pparm"];
     PortalArticleListBiz biz = new PortalArticleListBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Delete(idlist, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:8,代码来源:articlelist.aspx.cs

示例10: SetItemRight

 public void SetItemRight()
 {
     string qid = Parameters["pquestionid"];
     string itemid = Parameters["pitemid"];
     OEQuestionItemBiz biz = new OEQuestionItemBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.UpdateRight(qid, itemid, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftmac,项目名称:HQDEV1-1,代码行数:9,代码来源:OEQuestionItemSet.aspx.cs

示例11: DelItem

 public void DelItem()
 {
     string _id = Parameters["pid"];
     string _date = (new DateTime()).ToString();
     PmPartymemberBiz biz = new PmPartymemberBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.UpdateObject(_id, "0", _date, "", out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:9,代码来源:objectmanage.aspx.cs

示例12: DelFunction

 public void DelFunction()
 {
     string idlist = Parameters["pparm"];
     SysFunListBiz biz = new SysFunListBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     NameValueCollection where = new NameValueCollection();
     where.Add("condition","FFunId in " + idlist);
     biz.Delete(where, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:10,代码来源:functionmanage.aspx.cs

示例13: DeleteItem

 public void DeleteItem()
 {
     string _id = Parameters["qid"];
     string _idlist = Parameters["pparm"];
     NameValueCollection where = new NameValueCollection();
     where.Add("condition", "(FQuestionId = " + _id + ") and (FItemId in (" + _idlist + "))");
     ErrorEntity ErrInfo = new ErrorEntity();
     OEQuestionItemBiz biz = new OEQuestionItemBiz();
     biz.Delete(where, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftmac,项目名称:HQDEV1-1,代码行数:11,代码来源:OEQuestionItemSet.aspx.cs

示例14: DelColumn

 public void DelColumn()
 {
     string _idlist = Parameters["pparm"];
     PortalChildColumnBiz biz = new PortalChildColumnBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     PortalChildColumnContentBiz ccbiz = new PortalChildColumnContentBiz();
     NameValueCollection where = new NameValueCollection();
     where.Add("condition","FChildColumnId in (" + _idlist + ")");
     ccbiz.Delete(where, out ErrInfo);
     if (ErrInfo.ErrorCode == RespCode.Success)
     {
         biz.Delete(_idlist, out ErrInfo);
     }
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftware,项目名称:HQDEV1-1,代码行数:15,代码来源:childcoldefine.aspx.cs

示例15: SaveItem

 public void SaveItem()
 {
     string _itemcontent = Parameters["pitemcontent"];
     string _qid = Parameters["qid"];
     string _itemflag = Parameters["pitemflag"];
     OEQuestionItem item = new OEQuestionItem();
     item.FQuestionId = Convert.ToInt64(_qid);
     item.FItemId = 0;
     item.FItemContent = _itemcontent;
     item.FItemFlag = _itemflag;
     OEQuestionItemBiz biz = new OEQuestionItemBiz();
     ErrorEntity ErrInfo = new ErrorEntity();
     biz.Insert(item, out ErrInfo);
     Response.Write(ErrInfo.ToJson());
 }
开发者ID:hqsoftmac,项目名称:HQDEV1-1,代码行数:15,代码来源:OEQuestionItemAdd.aspx.cs


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