本文整理汇总了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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}