Ejemplo n.º 1
0
 private void txtBinRack_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         try
         {
             TextBox txt = (TextBox)sender;
             if (e.KeyData == Keys.F2)
             {
                 frmPopup objfrmPopup = new frmPopup(objBASEFILEDS.HTMAIN, "RACK_MAST", "", "RACKID,RACKNAME", "RACKNAME;Rack,WAREHOUSENAME;WareHouse", "Please select", "", false, "");
                 //objfrmPopup.objCompany = objBASEFILEDS.ObjCompany;
                 //objfrmPopup.objControlSet = objBASEFILEDS.ObjControlSet;
                 objfrmPopup.ObjBFD = objBASEFILEDS;
                 objfrmPopup.ShowDialog();
                 txt.Text          = objBASEFILEDS.HTMAIN["RACKNAME"].ToString();
                 txtBinRackId.Text = objBASEFILEDS.HTMAIN["RACKID"].ToString();
             }
         }
         catch (Exception ex)
         {
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 2
0
 private void btnUser_Click_1(object sender, EventArgs e)
 {
     try
     {
         if (objBASEFILEDS.Tran_mode == "add_mode")
         {
             frmPopup objfrmpopup = new frmPopup(objBASEFILEDS.HTMAIN, "Login_Mast", "UL", "userid,user_nm", "userid;User Id,user_nm;User Name", "Please select", "", false, "", "0");
             //objfrmpopup.objCompany = objBASEFILEDS.ObjCompany;
             //objfrmpopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objfrmpopup.ObjBFD = objBASEFILEDS;
             objfrmpopup.ShowDialog();
             txtUser.Text = objBASEFILEDS.HTMAIN["user_nm"].ToString();
         }
         else
         {
             frmPopup objfrmpopup = new frmPopup(objBASEFILEDS.HTMAIN, "Roles_Mapping", "RM", "intRoleMappingId,user_nm", "userid;User Id,user_nm;User Name", "Please select", "fin_yr='" + objBASEFILEDS.ObjCompany.Fin_yr + "'", false, "", "0");
             //objfrmpopup.objCompany = objBASEFILEDS.ObjCompany;
             //objfrmpopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objfrmpopup.ObjBFD = objBASEFILEDS;
             objfrmpopup.ShowDialog();
             txtUser.Text          = objBASEFILEDS.HTMAIN["user_nm"].ToString();
             objBASEFILEDS.Tran_id = objBASEFILEDS.HTMAIN["intRoleMappingId"].ToString();
             ViewMapping();
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 3
0
        private void btnGroup_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "IVW_CUSTOMERGRP", "", "ac_grp_id,ac_grp_nm", "ac_grp_nm;Account Group", "Please Select", "", false, "", "0");

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtGroup.Text = objBASEFILEDS.HTMAIN["ac_grp_nm"].ToString();
        }
Ejemplo n.º 4
0
        private void btnState_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "[STATE]", "", "state_id,state_nm", "state_nm;State", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtState.Text = objBASEFILEDS.HTMAIN["state_nm"].ToString();
        }
Ejemplo n.º 5
0
        private void btnCountry_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "COUNTRY", "", "country_id,country_nm", "country_nm;Country", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtCountry.Text = objBASEFILEDS.HTMAIN["country_nm"].ToString();
        }
Ejemplo n.º 6
0
        private void btnGroup_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, objBASEFILEDS.Main_tbl_nm, "", "ac_grp_id,ac_grp_nm", "ac_grp_nm;Parent,parent_nm;Group", "Please Select", "", false, "", "0");

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtGroup.Text = objBASEFILEDS.HTMAIN["ac_grp_nm"].ToString();
        }
Ejemplo n.º 7
0
        private void txtParent_KeyDown(object sender, KeyEventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, objBASEFILEDS.Main_tbl_nm, "", "ac_grp_id;parent_id,ac_grp_nm;parent_nm", "ac_grp_nm;Parent", "Please Select", "", false, "", "0");

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtParent.Text = objBASEFILEDS.HTMAIN["parent_nm"].ToString();
        }
Ejemplo n.º 8
0
        private void btnAcc_Click(object sender, EventArgs e)
        {
            //frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "CM_MAST", "", "ac_id,ac_nm", "ac_nm;Account Name,ac_grp_nm; Account Group", "Please Select", "", false, "", "0");
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "IVW_ACCOUNTS", "", "primary_id;ac_id,primary_nm;ac_nm", "primary_nm; Account Name", "Please Select", "", false, "", "0");

            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtAcc_nm.Text = objBASEFILEDS.HTMAIN["ac_nm"].ToString();
        }
Ejemplo n.º 9
0
        private void btnTaxNm_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "st_mast", "", "STAX_ID,TAX_NM", "STAX_ID,TAX_NM;Sales Tax Name", "Please Select", "", false, "", "0");

            //objpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtTaxNm.Text = objBASEFILEDS.HTMAIN["tax_nm"].ToString();
        }
Ejemplo n.º 10
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "tran_set", "", "code,tran_nm", "code;Transaction Code,tran_nm;Trasaction Name", "Please Select", "tran_type='Transaction' and isFileAttach='1'", false, "", "0");

            //objpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtTransaction_nm.Text = objBASEFILEDS.HTMAIN["tran_nm"].ToString();
        }
Ejemplo n.º 11
0
 private void txtGroup_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F2)
     {
         frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "IVW_CUSTOMERGRP", "", "ac_grp_id,ac_grp_nm", "ac_grp_nm;Account Group", "Please Select", "", false, "", "0");
         objpopup.ObjBFD = objBASEFILEDS;
         objpopup.ShowDialog();
         txtGroup.Text = objBASEFILEDS.HTMAIN["ac_grp_nm"].ToString();
     }
 }
Ejemplo n.º 12
0
 private void txtState_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.F2)
     {
         frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "[STATE]", "", "state_id,state_nm", "state_nm;State", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name
         //objpopup.objCompany = objBASEFILEDS.ObjCompany;
         //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
         objpopup.ObjBFD = objBASEFILEDS;
         objpopup.ShowDialog();
         txtState.Text = objBASEFILEDS.HTMAIN["state_nm"].ToString();
     }
 }
Ejemplo n.º 13
0
 private void txtCountry_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.F2)
     {
         frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "COUNTRY", "", "country_id,country_nm", "country_nm;Country", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name
         //objpopup.objCompany = objBASEFILEDS.ObjCompany;
         //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
         objpopup.ObjBFD = objBASEFILEDS;
         objpopup.ShowDialog();
         txtCountry.Text = objBASEFILEDS.HTMAIN["country_nm"].ToString();
     }
 }
Ejemplo n.º 14
0
 private void txtModuleNm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F2)
     {
         frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "tran_set", "", "code,tran_nm", "code;Transaction Code,tran_nm;Trasaction Name", "Please Select", "tran_type='Transaction' and isTaxApp='1'", false, "", "0");
         //objpopup.objCompany = objBASEFILEDS.ObjCompany;
         //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
         objpopup.ObjBFD = objBASEFILEDS;
         objpopup.ShowDialog();
         txtModuleNm.Text = objBASEFILEDS.HTMAIN["tran_nm"].ToString();
     }
 }
Ejemplo n.º 15
0
        private void btnAccountNm_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "cm_mast", "", "ac_id,ac_nm", "ac_nm;Account Name", "Please Select", "tran_cd='VM'", false, "", "0");//,tran_nm;Trasaction Name

            //objpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtac_nm.Text = objBASEFILEDS.HTMAIN["ac_nm"].ToString();
            if (checkProductValid())
            {
                txtac_nm.Focus();
            }
        }
Ejemplo n.º 16
0
        private void btnSeries_Click(object sender, EventArgs e)
        {
            frmPopup objfrmpopup = new frmPopup(objBASEFILEDS.HTMAIN, "Series", "SS", "sr_id,tran_sr", "sr_id;Series Id,tran_sr;Transaction Series", "Please select", "compid='" + objBASEFILEDS.ObjCompany.Compid + "'", false, "", "0");

            //objfrmpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objfrmpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objfrmpopup.ObjBFD = objBASEFILEDS;
            objfrmpopup.ShowDialog();
            if (objBASEFILEDS.HTMAIN["tran_sr"].ToString() != "" && objBASEFILEDS.HTMAIN["tran_sr"] != null)
            {
                txtSeries.Text        = objBASEFILEDS.HTMAIN["tran_sr"].ToString();
                objBASEFILEDS.Tran_id = objBASEFILEDS.HTMAIN["sr_id"].ToString();
            }
            ViewSeriesDetails();
        }
Ejemplo n.º 17
0
 private void btnProd_nm_Click(object sender, EventArgs e)
 {
     try
     {
         frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "PROJECT_MAST", "", "proj_cd,proj_nm", "proj_nm;Project Name", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name
         //objpopup.objCompany = objBASEFILEDS.ObjCompany;
         //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
         objpopup.ObjBFD = objBASEFILEDS;
         objpopup.ShowDialog();
         txtproj_nm.Text = objBASEFILEDS.HTMAIN["proj_nm"].ToString();
         //CopyProductGroupDetails();
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 18
0
        private void btnUser_Click_1(object sender, EventArgs e)
        {
            objIni.SetKeyFieldValue("SQL", "initial catalog", "InodeMFG");
            frmPopup objfrmpopup = new frmPopup(objBASEFILEDS.HTMAIN, "Login_Mast", "UL", "userid,user_nm", "userid;User Id,user_nm;User Name", "Please select", "compid='" + objBASEFILEDS.ObjCompany.Compid + "'", false, "", "0");

            //objfrmpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objfrmpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objfrmpopup.ObjBFD = objBASEFILEDS;
            objfrmpopup.ShowDialog();
            if (objBASEFILEDS.HTMAIN["user_nm"].ToString() != "" && objBASEFILEDS.HTMAIN["user_nm"] != null)
            {
                txtUser.Text          = objBASEFILEDS.HTMAIN["user_nm"].ToString();
                objBASEFILEDS.Tran_id = objBASEFILEDS.HTMAIN["userid"].ToString();
            }
            ViewUserDetails();
        }
Ejemplo n.º 19
0
 private void btnSel_Click_1(object sender, EventArgs e)
 {
     try
     {
         frmPopup objfrmpopup = new frmPopup(objBASEFILEDS.HTMAIN, "ROLES", "RL", "intRoleId,role_nm", "intRoleId;Role Id,role_nm;Role", "Please select", "", false, "", "0");
         //objfrmpopup.objCompany = objBASEFILEDS.ObjCompany;
         //objfrmpopup.objControlSet = objBASEFILEDS.ObjControlSet;
         objfrmpopup.ObjBFD = objBASEFILEDS;
         objfrmpopup.ShowDialog();
         txtRole.Text          = objBASEFILEDS.HTMAIN["role_nm"].ToString();
         objBASEFILEDS.Tran_id = objBASEFILEDS.HTMAIN["intRoleId"].ToString();
         LoadRights();
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 20
0
 private void txtprod_gr_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         if (e.KeyData == Keys.F2)
         {
             frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "PROD_GROUP", "", "pt_grp_id,pt_grp_nm", "pt_grp_nm;Product Group", "Please Select", "", false, "", "0");//,tran_nm;Trasaction Name
             //objpopup.objCompany = objBASEFILEDS.ObjCompany;
             //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objpopup.ObjBFD = objBASEFILEDS;
             objpopup.ShowDialog();
             txtprod_gr.Text = objBASEFILEDS.HTMAIN["pt_grp_nm"].ToString();
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 21
0
 private void txtac_nm_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         if (e.KeyData == Keys.F2)
         {
             frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "cm_mast", "", "ac_id,ac_nm", "ac_nm;Account Name", "Please Select", "tran_cd='VM'", false, "", "0");//,tran_nm;Trasaction Name
             //objpopup.objCompany = objBASEFILEDS.ObjCompany;
             //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objpopup.ObjBFD = objBASEFILEDS;
             objpopup.ShowDialog();
             txtac_nm.Text = objBASEFILEDS.HTMAIN["ac_nm"].ToString();
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 22
0
 private void txtTransaction_nm_KeyDown(object sender, KeyEventArgs e)
 {
     try
     {
         TextBox txt = (TextBox)sender;
         if (e.KeyData == Keys.F2)
         {
             frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "tran_set", "", "code,tran_nm", "code;Transaction Code,tran_nm;Trasaction Name", "Please Select", "tran_type='Transaction' and isFileAttach='1'", false, "", "0");
             //objpopup.objCompany = objBASEFILEDS.ObjCompany;
             //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objpopup.ObjBFD = objBASEFILEDS;
             objpopup.ShowDialog();
             txtTransaction_nm.Text = objBASEFILEDS.HTMAIN["tran_nm"].ToString();
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 23
0
 private void txt_key_down_font(object sender, KeyEventArgs e)
 {
     try
     {
         TextBox txt = (TextBox)sender;
         if (e.KeyData == Keys.F2)
         {
             frmPopup objfrmPopup = new frmPopup(((Hashtable)objBASEFILEDS.HTITEM[(dgvcolor.CurrentRow.Cells["tran_type"].Value)]), "FONT_FAMILY", "", "font_family_nm;" + txt.Name + ",font_family_nm;" + txt.Name, "font_family_nm;Font Family Name", "Please select", "", false, "");
             //objfrmPopup.objCompany = objBASEFILEDS.ObjCompany;
             //objfrmPopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objfrmPopup.ObjBFD = objBASEFILEDS;
             objfrmPopup.ShowDialog();
             txt.Text = ((Hashtable)objBASEFILEDS.HTITEM[(dgvcolor.CurrentRow.Cells["tran_type"].Value)])[txt.Name].ToString().Trim();
         }
     }
     catch (Exception ex)
     {
     }
 }
Ejemplo n.º 24
0
        private void btnModuleNm_Click(object sender, EventArgs e)
        {
            frmPopup objpopup = new frmPopup(objBASEFILEDS.HTMAIN, "tran_set", "", "code,tran_nm", "code;Transaction Code,tran_nm;Trasaction Name", "Please Select", "tran_type='Transaction' and isTaxApp='1'", false, "", "0");

            //objpopup.objCompany = objBASEFILEDS.ObjCompany;
            //objpopup.objControlSet = objBASEFILEDS.ObjControlSet;
            objpopup.ObjBFD = objBASEFILEDS;
            objpopup.ShowDialog();
            txtModuleNm.Text = objBASEFILEDS.HTMAIN["tran_nm"].ToString();

            if (txtModuleNm.Text != "")
            {
                CopyCode();
            }
            else
            {
                AutoClosingMessageBox.Show("Please select valid Module", "Validation", 3000);
                txtModuleNm.Focus();
            }
        }
Ejemplo n.º 25
0
 private void txt_key_down(object sender, KeyEventArgs e)
 {
     try
     {
         TextBox txt = (TextBox)sender;
         if (e.KeyData == Keys.F2)
         {
             POPUPTEXTBOX_FOR_GRID dgvVendorPriceLstcolumncod = (POPUPTEXTBOX_FOR_GRID)dgvVendorPriceLst.Columns[dgvVendorPriceLst.CurrentCell.ColumnIndex];
             frmPopup objfrmPopup = new frmPopup(((Hashtable)objBASEFILEDS.HTITEM[(dgvVendorPriceLst.CurrentRow.Cells["PTSERIAL"].Value)]), dgvVendorPriceLstcolumncod.Tbl_nm, dgvVendorPriceLstcolumncod.Reftbltran_cd, dgvVendorPriceLstcolumncod.Primaryddl, dgvVendorPriceLstcolumncod.Dispddlfields, "Please select", dgvVendorPriceLstcolumncod.Query_con, dgvVendorPriceLstcolumncod.IsQcd, dgvVendorPriceLstcolumncod.QcdCondition);
             //objfrmPopup.objCompany = objBASEFILEDS.ObjCompany;
             //objfrmPopup.objControlSet = objBASEFILEDS.ObjControlSet;
             objfrmPopup.ObjBFD = objBASEFILEDS;
             objfrmPopup.ShowDialog();
             txt.Text = ((Hashtable)objBASEFILEDS.HTITEM[(dgvVendorPriceLst.CurrentRow.Cells["PTSERIAL"].Value)])[txt.Name].ToString().Trim();
             foreach (string str in dgvVendorPriceLstcolumncod.Primaryddl.Split(','))
             {
                 dgvVendorPriceLst.CurrentRow.Cells[str].Value = ((Hashtable)objBASEFILEDS.HTITEM[(dgvVendorPriceLst.CurrentRow.Cells["PTSERIAL"].Value)])[str];
             }
         }
     }
     catch (Exception ex)
     {
     }
 }