Пример #1
0
 public void InsertData(mdlStoreDemand mdlstoredemand)
 {
     using(conn)
        {
        SqlCommand cmd = new SqlCommand("stp_INSERT_D_StoreDemands", conn);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add("@DemandNo", SqlDbType.VarChar, 6).Value = mdlstoredemand.DemandNo;
        cmd.Parameters.Add("@ItemCode", SqlDbType.VarChar, 8).Value = mdlstoredemand;
        conn.Open();
        cmd.ExecuteNonQuery();
        cmd.Dispose();
        }
 }
Пример #2
0
 public static void InsertData(mdlStoreDemand mdlstoredemand)
 {
     //dalGeneralStore.InsertData(mdlstoredemand);
 }