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()); }
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()); }
public void DelDepartment() { string idlist = Parameters["pparm"]; SysDepartmentBiz biz = new SysDepartmentBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(idlist, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
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()); }
public void DelNation() { string _parm = Parameters["pparm"]; SysNationBiz biz = new SysNationBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(_parm, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void DeleteUser() { string _idstr = Parameters["pparm"]; SysUserBiz biz = new SysUserBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(_idstr, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void DelArticle() { string _parm = Parameters["pparm"]; PortalArticleBiz biz = new PortalArticleBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(_parm, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void DelData() { string idlist = Parameters["pparm"]; PmOrgInfoBiz biz = new PmOrgInfoBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(idlist, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void DelList() { string idlist = Parameters["pparm"]; PortalArticleListBiz biz = new PortalArticleListBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Delete(idlist, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
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()); }
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()); }
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()); }
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()); }
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()); }
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()); }
public void SaveContent() { string _ccolid = Parameters["ccolid"]; string _title = Parameters["ptitle"]; string _keyword = Parameters["pkeyword"]; string _description = Parameters["pdescription"]; string _content = Parameters["pcontent"]; PortalChildColumnContent item = new PortalChildColumnContent(); item.FChildColumnId = Convert.ToInt64(_ccolid); item.FSEOTitle = _title; item.FSEOKeyWord = _keyword; item.FSEODescription = _description; item.FCCContentText = _content; PortalChildColumnContentBiz biz = new PortalChildColumnContentBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Save(item, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SaveQuestion() { string _contentclassid = Parameters["pcontentclassid"]; string _questionbank = Parameters["pquestionbank"]; string _questionid = Parameters["pquestionid"]; string _questiontitile = Parameters["pquestiontitle"]; string _questiontype = Parameters["pquestiontype"]; string _questiondiffculty = Parameters["pquestiondifficulty"]; string _keyword = Parameters["pkeyword"]; string _desc = Parameters["pdesc"]; string _analysis = Parameters["panalysis"]; ErrorEntity ErrInfo = new ErrorEntity(); OEQuestionBiz biz = new OEQuestionBiz(); HQOnlineExam.ML.OEQuestion item = new HQOnlineExam.ML.OEQuestion(); SysUser useritem = new SysUser(); useritem = GetUserInfo(); item.AUserId = useritem.FUserId; item.AUserName = useritem.FUserName; item.FQuestionId = Convert.ToInt64(_questionid); item.FQBankId = Convert.ToInt64(_questionbank); item.FQuestionTitle = _questiontitile; item.FQuestionType = _questiontype; item.FQuestionDifficulty = _questiondiffculty; item.FKeyWord = _keyword; item.FQuestionDesc = _desc; item.FQuestionAnalysis = _analysis; item.FQuestionStatus = "1"; if (string.IsNullOrEmpty(_questionid) || _questionid == "0") { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void UnRecommend() { string _id = Parameters["pid"]; PortalArticleBiz biz = new PortalArticleBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.UpdateStatus(_id, "0", out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SetObject() { string _memberid = Parameters["pmemberid"]; string _date = Parameters["pdate"]; string _orgid = Parameters["porgid"]; PmPartymemberBiz biz = new PmPartymemberBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.UpdateObject(_memberid, "1", _date, _orgid, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SavePic() { string _id = Parameters["pid"]; string _path = Parameters["ppath"]; NameValueCollection para = new NameValueCollection(); para.Add("FPicPath", _path); NameValueCollection where = new NameValueCollection(); where.Add("FMemberId", _id); ErrorEntity ErrInfo = new ErrorEntity(); SysMemberBiz biz = new SysMemberBiz(); biz.Update(para, where, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _FOrgId = Parameters["pFOrgId"]; // other paramters fill here string _orgname = Parameters["pFOrgName"]; string _deptid = Parameters["pDeptId"]; string _orgtype = Parameters["pFOrgType"]; string _order = Parameters["pOrder"]; string _parentid = Parameters["pParentId"]; string _newdate = Parameters["pNewDate"]; PmOrgInfo item = new PmOrgInfo(); item.FOrgId = string.IsNullOrEmpty(_FOrgId) ? 0 : Convert.ToInt64(_FOrgId); item.FDepartmentID = Convert.ToInt64(_deptid); item.FOrgName = _orgname; item.FOrgType = _orgtype; item.FParentOrgId = Convert.ToInt32(_parentid); item.FOrgOrder = Convert.ToInt32(_order); item.FOrgNewDate = Convert.ToDateTime(_newdate); PmOrgInfoBiz biz = new PmOrgInfoBiz(); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FOrgId == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void StopData() { string _id = Parameters["pparm"]; SysMemberBiz biz = new SysMemberBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.Stop(_id, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _navid = Parameters["navid"]; string _colid = Parameters["pcolid"]; string _colname = Parameters["pcolnam"]; string _coltype = Parameters["pcoltype"]; string _colurl = Parameters["pcolurl"]; string _coltarget = Parameters["pcoltarget"]; string _colvisible = Parameters["pcolvisible"]; string _colorder = Parameters["pcolorder"]; PortalChildColumn item = new PortalChildColumn(); item.FChildColumnId = Convert.ToInt64(_colid); item.FChildColumnName = _colname; item.FChildColumnOrder = Convert.ToInt32(_colorder); item.FChildColumnTarget = _coltarget; item.FChildColumnType = _coltype; item.FChildColumnUrl = _colurl; item.FChildColumnVisible = _colvisible; item.FNavId = Convert.ToInt64(_navid); PortalChildColumnBiz biz = new PortalChildColumnBiz(); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FChildColumnId == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _deptid = Parameters["pdeptid"]; string _deptcode = Parameters["pdeptcode"]; string _depttype = Parameters["pdepttype"]; string _deptname = Parameters["pdeptname"]; string _deptcharge = Parameters["pdeptcharge"]; string _depttel = Parameters["pdepttel"]; string _deptnum = Parameters["pdeptnum"]; string _content = Parameters["pcontent"]; SysDepartment item = new SysDepartment(); item.FDepartmentID = string.IsNullOrEmpty(_deptid) ? 0 : Convert.ToInt64(_deptid); item.FDepartmentCode = _deptcode; item.FDepartmentName = _deptname; item.FDepartmentCharge = _deptcharge; item.FDepartmentTypeId = string.IsNullOrEmpty(_depttype) ? 0 : Convert.ToInt64(_depttype); item.FDepartmentContent = _content; item.FDepartmentTel = _depttel; item.FDepartmentNum = string.IsNullOrEmpty(_deptnum) ? 0 : Convert.ToInt32(_deptnum); SysDepartmentBiz biz = new SysDepartmentBiz(); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FDepartmentID == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void StopFunction() { string idlist = Parameters["pparm"]; SysFunListBiz biz = new SysFunListBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.UpdateStatus(idlist, "0", out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SaveFunction() { string _funid = Parameters["pfunid"]; string _funcode = Parameters["pfuncode"]; string _parentid = Parameters["pparentid"]; string _funname = Parameters["pfunname"]; string _navigateurl = Parameters["pnavigateurl"]; string _fundesc = Parameters["pfundesc"]; string _moduleflag = Parameters["pmoduleflag"]; if (string.IsNullOrEmpty(_funid)) { _funid = "0"; } if (string.IsNullOrEmpty(_parentid)) { _parentid = "0"; } SysFunList item = new SysFunList(); item.FFunId = Convert.ToInt64(_funid); item.FFunCode = _funcode; item.FFunName = _funname; item.FParentFunId = Convert.ToInt64(_parentid); item.FFunNavigateUrl = _navigateurl; item.FFunContent = _fundesc; item.FModuleFlag = _moduleflag; SysFunListBiz biz = new SysFunListBiz(); Int64 result = 0; ErrorEntity ErrInfo = new ErrorEntity(); result = biz.Save(item, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void UpdateStatus() { string _id = Parameters["pid"]; string _flag = Parameters["pflag"]; OEQuestionBiz biz = new OEQuestionBiz(); ErrorEntity ErrInfo = new ErrorEntity(); biz.UpdateStatus(_id, _flag, out ErrInfo); Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _FMemberId = Parameters["pFMemberId"]; // other paramters fill here string _FMemberCode = Parameters["pFMemberCode"]; string _FMemberName = Parameters["pFMemberName"]; string _FEductionId = Parameters["pFEductionId"]; string _FNationId = Parameters["pFNationId"]; string _FDepartmentId = Parameters["pFDepartmentId"]; string _FMemberGendor = Parameters["pFMemberGendor"]; string _FBirthDate = Parameters["pFBirthDate"]; string _FPosition = Parameters["pFPosition"]; string _FMobile = Parameters["pFMobile"]; string _FIDNumber = Parameters["pFIDNumber"]; string _FPicPath = Parameters["pFPicPath"]; SysMember item = new SysMember(); item.FMemberId = string.IsNullOrEmpty(_FMemberId) ? 0 : Convert.ToInt64(_FMemberId); item.FBirthDate = string.IsNullOrEmpty(_FBirthDate) ? new DateTime() : Convert.ToDateTime(_FBirthDate); item.FDepartmentId = string.IsNullOrEmpty(_FDepartmentId) ? 0 : Convert.ToInt64(_FDepartmentId); item.FEductionId = string.IsNullOrEmpty(_FEductionId) ? 0 : Convert.ToInt64(_FEductionId); item.FIDNumber = _FIDNumber; item.FMemberCode = _FMemberCode; item.FMemberGendor = _FMemberGendor; item.FMemberName = _FMemberName; item.FMobile = _FMobile; item.FNationId = string.IsNullOrEmpty(_FNationId) ? 0 : Convert.ToInt64(_FNationId); item.FPicPath = _FPicPath; item.FPosition = _FPosition; SysMemberBiz biz = new SysMemberBiz(); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FMemberId == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _FContentClassId = Parameters["pFContentClassId"]; // other paramters fill here string _FContentClassCode = Parameters["pFContentClassCode"]; string _FContentClassName = Parameters["pFContentClassName"]; string _FContentClassContent = Parameters["pFContentClassContent"]; string _FIconPath = Parameters["pFIconPath"]; string _FParentId = Parameters["pFParentId"]; OEContentClass item = new OEContentClass(); item.FContentClassId = string.IsNullOrEmpty(_FContentClassId) ? 0 : Convert.ToInt64(_FContentClassId); item.FContentClassCode = _FContentClassCode; item.FContentClassName = _FContentClassName; item.FContentClassContent = _FContentClassContent; item.FIconPath = _FIconPath; item.FParentId = string.IsNullOrEmpty(_FParentId) ? 0 : Convert.ToInt64(_FParentId); OEContentClassBiz biz = new OEContentClassBiz(); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FContentClassId == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }
public void SaveItem() { string _nationid = Parameters["pnationid"]; string _nationname = Parameters["pnationname"]; string _nationorder = Parameters["pnationorder"]; SysNationBiz biz = new SysNationBiz(); SysNation item = new SysNation(); item.FNationID = string.IsNullOrEmpty(_nationid) ? 0 : Convert.ToInt64(_nationid); item.FNationName = _nationname; item.FNationOrder = string.IsNullOrEmpty(_nationorder) ? 0 : Convert.ToInt32(_nationorder); ErrorEntity ErrInfo = new ErrorEntity(); if (item.FNationID == 0) { biz.Insert(item, out ErrInfo); } else { biz.Update(item, out ErrInfo); } Response.Write(ErrInfo.ToJson()); }