Ejemplo n.º 1
0
        public void Delete(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
        {
            ArrayList colParam = new ArrayList();

            colParam.Add(CreateParam("@KQHT_CongThucDiem_ThanhPhanDiemID", SqlDbType.Int, pKQHT_CongThucDiem_ThanhPhanDiemInfo.KQHT_CongThucDiem_ThanhPhanDiemID));

            RunProcedure("sp_KQHT_CongThucDiem_ThanhPhanDiem_Delete", colParam);
        }
Ejemplo n.º 2
0
        public DataTable Get(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
        {
            ArrayList colParam = new ArrayList();

            colParam.Add(CreateParam("@KQHT_CongThucDiem_ThanhPhanDiemID", SqlDbType.Int, pKQHT_CongThucDiem_ThanhPhanDiemInfo.KQHT_CongThucDiem_ThanhPhanDiemID));

            return(RunProcedureGet("sp_KQHT_CongThucDiem_ThanhPhanDiem_Get", colParam));
        }
Ejemplo n.º 3
0
        public int Add(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
        {
            int ID = 0;

            ID            = oDKQHT_CongThucDiem_ThanhPhanDiem.Add(pKQHT_CongThucDiem_ThanhPhanDiemInfo);
            mErrorMessage = oDKQHT_CongThucDiem_ThanhPhanDiem.ErrorMessages;
            mErrorNumber  = oDKQHT_CongThucDiem_ThanhPhanDiem.ErrorNumber;
            return(ID);
        }
Ejemplo n.º 4
0
        public int Add(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
        {
            ArrayList colParam = new ArrayList();

            colParam.Add(CreateParam("@IDKQHT_CongThucDiem", SqlDbType.Int, pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_CongThucDiem));
            colParam.Add(CreateParam("@IDKQHT_ThanhPhanDiem", SqlDbType.Int, pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_ThanhPhanDiem));
            colParam.Add(CreateParamOut("@ID", SqlDbType.Int));

            return((int)RunProcedureOut("sp_KQHT_CongThucDiem_ThanhPhanDiem_Add", colParam));
        }
Ejemplo n.º 5
0
 public dlgCongThucDiem(DataTable mdtCongThuc, DataRow mdrCongThuc, EDIT_MODE mEdit, int mIDDM_Lop)
 {
     InitializeComponent();
     oBKQHT_CongThucDiem                  = new cBKQHT_CongThucDiem();
     pKQHT_CongThucDiemInfo               = new KQHT_CongThucDiemInfo();
     oBKQHT_CongThucDiem_ThanhPhanDiem    = new cBKQHT_CongThucDiem_ThanhPhanDiem();
     pKQHT_CongThucDiem_ThanhPhanDiemInfo = new KQHT_CongThucDiem_ThanhPhanDiemInfo();
     dtCongThuc = mdtCongThuc;
     drCongThuc = mdrCongThuc;
     edit       = mEdit;
     IDDM_Lop   = mIDDM_Lop;
 }
Ejemplo n.º 6
0
        public List <KQHT_CongThucDiem_ThanhPhanDiemInfo> GetList(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
        {
            List <KQHT_CongThucDiem_ThanhPhanDiemInfo> oKQHT_CongThucDiem_ThanhPhanDiemInfoList = new List <KQHT_CongThucDiem_ThanhPhanDiemInfo>();
            DataTable dtb = Get(pKQHT_CongThucDiem_ThanhPhanDiemInfo);

            if (dtb != null)
            {
                for (int i = 0; i < dtb.Rows.Count; i++)
                {
                    oKQHT_CongThucDiem_ThanhPhanDiemInfo = new KQHT_CongThucDiem_ThanhPhanDiemInfo();

                    oKQHT_CongThucDiem_ThanhPhanDiemInfo.KQHT_CongThucDiem_ThanhPhanDiemID = int.Parse(dtb.Rows[i]["KQHT_CongThucDiem_ThanhPhanDiemID"].ToString());
                    oKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_CongThucDiem  = int.Parse(dtb.Rows[i]["IDKQHT_CongThucDiem"].ToString());
                    oKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_ThanhPhanDiem = int.Parse(dtb.Rows[i]["IDKQHT_ThanhPhanDiem"].ToString());

                    oKQHT_CongThucDiem_ThanhPhanDiemInfoList.Add(oKQHT_CongThucDiem_ThanhPhanDiemInfo);
                }
            }
            return(oKQHT_CongThucDiem_ThanhPhanDiemInfoList);
        }
Ejemplo n.º 7
0
 public void ToInfo(ref KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo, DataRow dr)
 {
     pKQHT_CongThucDiem_ThanhPhanDiemInfo.KQHT_CongThucDiem_ThanhPhanDiemID = int.Parse(dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strKQHT_CongThucDiem_ThanhPhanDiemID].ToString());
     pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_CongThucDiem  = int.Parse(dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strIDKQHT_CongThucDiem].ToString());
     pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_ThanhPhanDiem = int.Parse(dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strIDKQHT_ThanhPhanDiem].ToString());
 }
Ejemplo n.º 8
0
 public void ToDataRow(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo, ref DataRow dr)
 {
     dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strKQHT_CongThucDiem_ThanhPhanDiemID] = pKQHT_CongThucDiem_ThanhPhanDiemInfo.KQHT_CongThucDiem_ThanhPhanDiemID;
     dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strIDKQHT_CongThucDiem]  = pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_CongThucDiem;
     dr[pKQHT_CongThucDiem_ThanhPhanDiemInfo.strIDKQHT_ThanhPhanDiem] = pKQHT_CongThucDiem_ThanhPhanDiemInfo.IDKQHT_ThanhPhanDiem;
 }
Ejemplo n.º 9
0
 public void Delete(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
 {
     oDKQHT_CongThucDiem_ThanhPhanDiem.Delete(pKQHT_CongThucDiem_ThanhPhanDiemInfo);
     mErrorMessage = oDKQHT_CongThucDiem_ThanhPhanDiem.ErrorMessages;
     mErrorNumber  = oDKQHT_CongThucDiem_ThanhPhanDiem.ErrorNumber;
 }
Ejemplo n.º 10
0
 public DataTable Get(KQHT_CongThucDiem_ThanhPhanDiemInfo pKQHT_CongThucDiem_ThanhPhanDiemInfo)
 {
     return(oDKQHT_CongThucDiem_ThanhPhanDiem.Get(pKQHT_CongThucDiem_ThanhPhanDiemInfo));
 }