Exemplo n.º 1
0
        public void List_Option(ListOption pAction)
        {
            fAction = pAction;

            switch (fAction)
            {
            case ListOption.notactive:

                if (rdo_notactive.Checked == true)
                {
                    LoadData(CMtables_exten.NotActive(new SQLITE_DAL()));
                }
                else
                {
                    LoadData(CMtables_exten.Active(new SQLITE_DAL()));
                }

                break;

            case ListOption.Search:
                LoadData(CMtables_exten.Searchby(txt_database.Text, txt_mtables.Text));
                break;

            default:
                LoadData(CMtables_exten.Active(new SQLITE_DAL()));
                break;
            }
        }
Exemplo n.º 2
0
        public void SetAction(BtnEvent pAction, string pPkValue)
        {
            fAction = pAction;

            switch (fAction)
            {
            case BtnEvent.Open:
                btn_save.Text = "CLOSE";
                obj           = CMtables_exten.PKId(pPkValue);
                itemstbl      = CMtablesitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                break;

            case BtnEvent.New:
                btn_save.Text     = "SAVE";
                obj               = CMtables.GetNew;
                itemstbl          = CMtablesitems.GetNew;
                editgrid.RowCount = 0;
                this.EnableControls(true);
                break;

            case BtnEvent.Edit:
                btn_save.Text = "UPDATE";
                obj           = CMtables_exten.PKId(pPkValue);
                itemstbl      = CMtablesitems_exten.FKId(pPkValue);
                this.EnableControls(true);
                break;

            case BtnEvent.Delete:
                btn_save.Text = "CONFIRM\r\nDELETE";
                obj           = CMtables_exten.PKId(pPkValue);
                itemstbl      = CMtablesitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                break;

            case BtnEvent.Print:
                btn_save.Text = "PRINT";
                obj           = CMtables_exten.PKId(pPkValue);
                itemstbl      = CMtablesitems_exten.FKId(pPkValue);
                this.EnableControls(false);
                break;
            }

            this.LoadData(obj);
            this.Loaditems(itemstbl);
        }
Exemplo n.º 3
0
        private MasterTablePath CollectData()
        {
            MasterTablePath fobj = new MasterTablePath()
            {
                Masterpath_id   = vId,
                Mastertables_id = CMtables_exten.GetId_Name(txt_mtables_id.Text),
                Root_folder     = txt_root_folder.Text,
                Contfolder      = txt_contfolder.Text,
                Classfolder     = txt_classfolder.Text,
                Formfolder      = txt_formfolder.Text,
                Listfolder      = txt_listfolder.Text,
                Setupfolder     = txt_setupfolder.Text,
                Testfolder      = txt_testfolder.Text,
                Active_id       = Core.Stative,
            };

            return(fobj);
        }
Exemplo n.º 4
0
 void txt_mpath_LookupUpdate(object sender, EventArgs e)
 {
     txt_mtables_id.LookupList = CMtables_exten.GetforLookup(new SQLITE_DAL());
 }
Exemplo n.º 5
0
 void Txt_party_LookupUpdate(object sender, EventArgs e)
 {
     txt_mtables.LookupList = CMtables_exten.GetforLookup(new SQLITE_DAL());
 }
Exemplo n.º 6
0
        private void Btn_generate_Click(object sender, EventArgs e)
        {
            MTablesScript.MRun(Convert.ToInt32("" + CMtables_exten.GetId_Name(txt_mtables.Text)));

            MessageBox.Show("Sucess!");
        }