Esempio n. 1
0
        void LOAD_DATAAREA(RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            DataTable dt = b.SEARCH_BYKODEAREA(obj);

            if (dt.Rows.Count > 0)
            {
                c.IDAREA     = int.Parse(dt.Rows[0]["IDAREA"].ToString());
                txtKODE.Text = dt.Rows[0]["KODEAREA"].ToString();
                txtNAMA.Text = dt.Rows[0]["NAMAAREA"].ToString();
            }
        }
Esempio n. 2
0
        public FormAREA(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            InitializeComponent();
            this.frm  = _frm;
            this.Type = Type;

            if (Type == 1)
            {
                LOAD_DATA(obj);
            }
        }
Esempio n. 3
0
        void LOAD_DATAKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            DataTable dt = b.CARI_BYIDKOTA(obj);

            if (dt.Rows.Count > 0)
            {
                c.IDKOTA     = int.Parse(dt.Rows[0]["IDKOTA"].ToString());
                txtKODE.Text = dt.Rows[0]["KODEKOTA"].ToString();
                txtNAMA.Text = dt.Rows[0]["NAMAKOTA"].ToString();
            }
        }
Esempio n. 4
0
 public void GET_DATA_KOTA(RMS.COMMON.MASTER.RMS_KOTA obj, string _namaField)
 {
     if (_namaField == "ORIGIN")
     {
         txtKODEASAL.Text = obj.KODEKOTA;
         txtASAL.Text     = obj.NAMAKOTA;
         c.IDKOTAASAL     = obj.IDKOTA;
     }
     else
     {
         txtKODETUJUAN.Text = obj.KODEKOTA;
         txtTUJUAN.Text     = obj.NAMAKOTA;
         c.IDKOTATUJUAN     = obj.IDKOTA;
     }
 }
Esempio n. 5
0
        public FormTERUSAN(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            InitializeComponent();
            this.frm  = _frm;
            this.Type = Type;

            if (Type == 0)
            {
                LOAD_DATAKOTA(obj);
            }
            else
            {
                LOAD_DATAKOTA(obj);
                //LOAD_DATAKOTA(obj);
            }
        }
Esempio n. 6
0
 public void DELETE(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     try
     {
         using (Database db = new Database())
         {
             DataTable dt = new DataTable();
             db.Commands.Add(db.CreateCommand(QUERY_DELETE));
             // db.Commands[0].Parameters.Add(new Parameter("@KODESALES", MySqlDbType.VarChar, obj.KODE));
             dt = db.Commands[0].ExecuteDataTable();
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Esempio n. 7
0
        public DataTable GET_TERUSANBYID(RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            DataTable dt = new DataTable();

            try
            {
                using (Database db = new Database())
                {
                    db.Commands.Add(db.CreateCommand(QUERY_GETTERUSAN_BYID));
                    db.Commands[0].Parameters.Add(new Parameter("@IDKOTA", MySqlDbType.VarChar, obj.IDKOTA));
                    dt = db.Commands[0].ExecuteDataTable();
                }
                return(dt);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Esempio n. 8
0
        // UNTUK PENCARIAN AREA BY NAMA
        public DataTable SEARCH_BYNAMAAREA(RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            DataTable dt = new DataTable();

            try
            {
                using (Database db = new Database())
                {
                    db.Commands.Add(db.CreateCommand(QUERY_SEARCH_BYNAMEAREA));
                    db.Commands[0].Parameters.Add(new Parameter("@NAMAAREA", MySqlDbType.VarChar, obj.NAMAAREA));
                    dt = db.Commands[0].ExecuteDataTable();
                }
                return(dt);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Esempio n. 9
0
        public void INSERTTERUSAN(RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            try
            {
                using (Database db = new Database())
                {
                    DataTable dt = new DataTable();
                    db.Commands.Add(db.CreateCommand(QUERY_INSERTTERUSAN));
                    db.Commands[0].Parameters.Add(new Parameter("@IDKOTA", MySqlDbType.Int32, obj.IDKOTA));
                    db.Commands[0].Parameters.Add(new Parameter("@NAMATERUSAN", MySqlDbType.VarChar, obj.NAMATERUSAN));


                    dt = db.Commands[0].ExecuteDataTable();
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Esempio n. 10
0
 public DataTable SEARCH_BYKODE(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.SEARCH_BYKODE(obj));
 }
Esempio n. 11
0
 public DataTable GETKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.GETKOTA(obj));
 }
Esempio n. 12
0
 public void INSERTKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     p.INSERTKOTA(obj);
 }
Esempio n. 13
0
 public DataTable SEARCH_BYNAMAAREAKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.SEARCH_BYNAMAAREAKOTA(obj));
 }
Esempio n. 14
0
 public void UPDATEKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     p.UPDATEKOTA(obj);
 }
Esempio n. 15
0
 public void INSERTTERUSAN(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     p.INSERTTERUSAN(obj);
 }
Esempio n. 16
0
 public DataTable CARI_BYKODEKOTA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.CARI_BYKODEKOTA(obj));
 }
Esempio n. 17
0
 public DataTable GET_TERUSANBYID(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.GET_TERUSANBYID(obj));
 }
Esempio n. 18
0
 public DataTable GETTERUSAN_BYNAMA(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.GETTERUSAN_BYNAMA(obj));
 }
Esempio n. 19
0
 public void DELETETERUSAN(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     p.DELETETERUSAN(obj);
 }
Esempio n. 20
0
 public DataTable GETAREA_BYKODE(RMS.COMMON.MASTER.RMS_KOTA obj)
 {
     return(p.GETAREA_BYKODE(obj));
 }