Exemple #1
0
 public static List <Kupot> GetProfKupotList()
 {
     try
     {
         return(Kupot.GetListKupaDTO(db.Kupot1.ToList()));
     }
     catch
     {
         return(null);
     }
 }
Exemple #2
0
        public Kupot Kupah(int code)
        {
            DAKupah        dcp    = new DAKupah();
            ListDictionary Params = new ListDictionary();

            Params.Add("@code", BLCtrl.sendInt(code, 0));
            DataSet ds = dcp.Kupah(Params);
            Kupot   k  = new Kupot();

            k.Kupah = BLCtrl.getString(ds.Tables[0].Rows[0], "Kupah", "");
            return(k);
        }
        public List <Kupot> Draw_Kupah()
        {
            DA_Add_Patiants dm     = new DA_Add_Patiants();
            ListDictionary  Params = new ListDictionary();
            DataSet         ds     = dm.Draw_Kupah(Params);
            List <Kupot>    l      = new List <Kupot>();
            Kupot           k;

            foreach (DataRow item in ds.Tables[0].Rows)
            {
                k       = new Kupot();
                k.Kupah = BLCtrl.getString(item, "Kupah", "");
                k.Code  = BLCtrl.getInt(item, "Code", 0);
                l.Add(k);
            }
            return(l);
        }
Exemple #4
0
        public List <Kupot> getKupot()
        {
            DAGetKupot     dak    = new DAGetKupot();
            ListDictionary Params = new ListDictionary();
            DataSet        ds     = dak.getKupot();
            List <Kupot>   lk     = new List <Kupot>();
            Kupot          k;

            foreach (DataRow item in ds.Tables[0].Rows)
            {
                k       = new Kupot();
                k.Code  = BLCtrl.getInt(item, "Code", 0);
                k.Kupah = BLCtrl.getString(item, "Kupah", "");
                lk.Add(k);
            }
            return(lk);
        }