Exemplo n.º 1
0
        public static object GetDesignationTypeID(string DesignCode)
        {
            database db = new database();

            db.AddParameter("@DesignationCode", DesignCode);
            db.AddParameter("@QryType", "G");
            return(db.GetDataValue("DesigCode"));
        }
Exemplo n.º 2
0
        public static void Delete(string id)
        {
            database db = new database();

            db.AddParameter("@DesigId", id);
            db.AddParameter("@QryType", "D");
            db.ExecuteSP("DesigProc");
        }
Exemplo n.º 3
0
        public static void Save(Desig st, string QryType)
        {
            database db = new database();

            db.AddParameter("@DesigId", st.DesigId);
            db.AddParameter("@DesigNm", st.DesigNm);
            db.AddParameter("@DesigTypeID", st.DesigTypeID);
            db.AddParameter("@QryType", QryType);
            db.ExecuteSP("DesigProc");
        }
Exemplo n.º 4
0
        public static DataTable GetDesignationType()
        {
            database db = new database();

            db.AddParameter("@QryType", "S");
            return(db.GetDataTable("DesigCode"));
        }
Exemplo n.º 5
0
        public static string GetMaxStateId()
        {
            database db = new database();

            db.AddParameter("@QryType", "M");
            return(db.GetMaxId("DesigProc").ToString());
        }
Exemplo n.º 6
0
        public static DataTable GetStates()
        {
            database db = new database();

            db.AddParameter("@QryType", "S");
            return(db.GetDataTable("DesigProc"));
        }