private static void getOrganiger(string xgid, string Mes, string jsyhdm, string businessCode, string businessClass) { com.jwsoft.pm.entpm.model.PTDBSJ model = new com.jwsoft.pm.entpm.model.PTDBSJ { V_LXBM = "017", I_XGID = xgid, DTM_DBSJ = DateTime.Now, V_Content = Mes, V_DBLJ = "?rid=" + xgid + "&bc=" + businessCode + "&bcl=" + businessClass, V_YHDM = jsyhdm }; SendSysMsg(model); }
private static int SendSysMsg(com.jwsoft.pm.entpm.model.PTDBSJ model) { DataTable table = getTxlxList(model.V_LXBM); if (table.Rows.Count > 0) { model.V_TPLJ = table.Rows[0]["V_TPLJ"].ToString(); if (model.V_LXBM != "014") { model.V_DBLJ = table.Rows[0]["V_DBLJ"].ToString() + model.V_DBLJ; } model.C_OpenFlag = table.Rows[0]["C_OpenFlag"].ToString(); } return(PTDBSJAdd(model)); }
private static int PTDBSJAdd(com.jwsoft.pm.entpm.model.PTDBSJ model) { StringBuilder builder = new StringBuilder(); builder.Append("insert into PT_DBSJ("); builder.Append("I_XGID,V_LXBM,V_YHDM,DTM_DBSJ,V_Content,V_TPLJ,V_DBLJ,C_OpenFlag"); builder.Append(")"); builder.Append(" values ("); builder.Append("'" + model.I_XGID + "',"); builder.Append("'" + model.V_LXBM + "',"); builder.Append("'" + model.V_YHDM + "',"); builder.Append("'" + model.DTM_DBSJ + "',"); builder.Append("'" + model.V_Content + "',"); builder.Append("'" + model.V_TPLJ + "',"); builder.Append("'" + model.V_DBLJ + "',"); builder.Append("'" + model.C_OpenFlag + "'"); builder.Append(")"); return(SqlHelper.ExecuteNonQuery(CommandType.Text, builder.ToString(), new SqlParameter[0])); }
public void Remove(PTDBSJ value) { base.List.Remove(value); }
public void Insert(int index, PTDBSJ value) { base.List.Insert(index, value); }
public int IndexOf(PTDBSJ value) { return(base.List.IndexOf(value)); }
public int Add(PTDBSJ value) { return(base.List.Add(value)); }