/// <summary> /// 数据绑定 /// </summary> protected void databind() { T_NotTraded bll = new T_NotTraded(); rpList.DataSource = bll.GetList(new E_NotTraded() { PersonalID = PersonalID }); rpList.DataBind(); }
protected void databind() { T_NotTraded bll = new T_NotTraded(); rpList.DataSource = bll.GetList(new E_NotTraded() { EnterpriseID = EnterpriceID }); rpList.DataBind(); }
/// <summary> /// 录入新失败 /// </summary> void NoTradedAdd() { MLMGC.Security.PersonalPage pp = new MLMGC.Security.PersonalPage(true); string name = nv["name"]; E_NotTraded data = new E_NotTraded(); data.PersonalID = pp.PersonalID; data.NotTradedID = 0; data.NotTradedName = name; int tradeid = new T_NotTraded().Add(data); HttpContext.Current.Response.Write(tradeid); }
/// <summary> /// 删除失败信息 /// </summary> void NoTradedDelete() { MLMGC.Security.PersonalPage pp = new MLMGC.Security.PersonalPage(true); int nottradedid = 0; int.TryParse(nv["nottradedid"], out nottradedid); E_NotTraded data = new E_NotTraded(); data.PersonalID = pp.PersonalID; data.NotTradedID = nottradedid; bool b = new T_NotTraded().Delete(data); HttpContext.Current.Response.Write(b ? "1" : "0"); }
/// <summary> /// 失败是否存在 /// </summary> void NoTradedExists() { MLMGC.Security.EnterprisePage ep = new MLMGC.Security.EnterprisePage(true); int nottradedid = 0; int.TryParse(nv["nottradedid"], out nottradedid); string name = nv["name"]; E_NotTraded data = new E_NotTraded(); data.EnterpriseID = ep.EnterpriceID; data.NotTradedID = nottradedid; data.NotTradedName = name; bool b = new T_NotTraded().Exists(data); HttpContext.Current.Response.Write(b ? "1" : "0"); }
/// <summary> /// 录入新失败 /// </summary> void NoTradedAdd() { MLMGC.Security.EnterprisePage ep = new MLMGC.Security.EnterprisePage(true); string name = nv["name"]; E_NotTraded data = new E_NotTraded(); data.EnterpriseID = ep.EnterpriceID; data.NotTradedID = 0; data.NotTradedName = name; int tradeid = new T_NotTraded().Add(data); new MLMGC.BLL.Enterprise.T_Log().Add(new MLMGC.DataEntity.Enterprise.E_Log() { EnterpriseID = ep.EnterpriceID, UserID = ep.UserID, LogTitle = "添加失败理由", IP = MLMGC.COMP.Requests.GetRealIP() }); HttpContext.Current.Response.Write(tradeid); }
/// <summary> /// 删除失败信息 /// </summary> void NoTradedDelete() { MLMGC.Security.EnterprisePage ep = new MLMGC.Security.EnterprisePage(true); int nottradedid = 0; int.TryParse(nv["nottradedid"], out nottradedid); E_NotTraded data = new E_NotTraded(); data.EnterpriseID = ep.EnterpriceID; data.NotTradedID = nottradedid; int result = new T_NotTraded().Delete(data); new MLMGC.BLL.Enterprise.T_Log().Add(new MLMGC.DataEntity.Enterprise.E_Log() { EnterpriseID = ep.EnterpriceID, UserID = ep.UserID, LogTitle = "删除失败理由", IP = MLMGC.COMP.Requests.GetRealIP() }); HttpContext.Current.Response.Write(result.ToString()); }
/// <summary> /// 修改失败状态 /// </summary> void NoTradedUpdate() { MLMGC.Security.EnterprisePage ep = new MLMGC.Security.EnterprisePage(true); int nottradedid = 0; int.TryParse(nv["nottradedid"], out nottradedid); string name = nv["name"]; E_NotTraded data = new E_NotTraded(); data.EnterpriseID = ep.EnterpriceID; data.NotTradedID = nottradedid; data.NotTradedName = name; bool b = new T_NotTraded().Update(data); new MLMGC.BLL.Enterprise.T_Log().Add(new MLMGC.DataEntity.Enterprise.E_Log() { EnterpriseID = ep.EnterpriceID, UserID = ep.UserID, LogTitle = "修改失败理由", IP = MLMGC.COMP.Requests.GetRealIP() }); HttpContext.Current.Response.Write(b ? "1" : "0"); }
/// <summary> /// 获取显示失败状态信息 /// </summary> void NoTradedShow() { MLMGC.Security.EnterprisePage ep = new MLMGC.Security.EnterprisePage(true); int nottradedid = 0; int.TryParse(nv["nottradedid"], out nottradedid); E_NotTraded data = new E_NotTraded(); data.EnterpriseID = ep.EnterpriceID; data.NotTradedID = nottradedid; data = new T_NotTraded().GetModel(data); if (data == null) { data = new E_NotTraded(); data.NotTradedID = 0; } JsonObjectCollection colDR = new JsonObjectCollection(); colDR.Add(new JsonStringValue("id", data.NotTradedID.ToString())); colDR.Add(new JsonStringValue("name", data.NotTradedName)); HttpContext.Current.Response.Write(colDR.ToString()); }