Пример #1
0
 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);
 }
Пример #2
0
        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));
        }
Пример #3
0
        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]));
        }
Пример #4
0
 public void Remove(PTDBSJ value)
 {
     base.List.Remove(value);
 }
Пример #5
0
 public void Insert(int index, PTDBSJ value)
 {
     base.List.Insert(index, value);
 }
Пример #6
0
 public int IndexOf(PTDBSJ value)
 {
     return(base.List.IndexOf(value));
 }
Пример #7
0
 public int Add(PTDBSJ value)
 {
     return(base.List.Add(value));
 }