private void LVDayBook_MouseDoubleClick(object sender, MouseEventArgs e) { try { if (userrights.Rows.Count > 0) { if (userrights.Rows[31]["u"].ToString() == "True") { this.Enabled = false; String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[1].Text; SaletypeEntry bd = new SaletypeEntry(this, master, tabControl); bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text); // bd.Show(); master.AddNewTab(bd); } else { MessageBox.Show("You don't have Permission to View"); return; } } } finally { this.Enabled = true; } }
public void lvcompany1() { try { try { this.Enabled = false; lvcompany = lvcomplain.Items[lvcomplain.FocusedItem.Index].SubItems[0].Text; frmComplainMasterData dlg = new frmComplainMasterData(master, tabControl); dlg.Update(1, lvcompany); master.AddNewTab(dlg); // dlg.Show(); } finally { this.Enabled = true; } } catch { } }
private void btnnew_Click(object sender, EventArgs e) { PurchaseTypeEntry frm = new PurchaseTypeEntry(master, tabControl); master.AddNewTab(frm); // frm.MdiParent = this; //frm.StartPosition = FormStartPosition.WindowsDefaultLocation; //frm.Show(); }
private void btnNew_Click(object sender, EventArgs e) { UserInfo frm = new UserInfo(master, tabControl); master.AddNewTab(frm); //frm.MdiParent = this.MdiParent; //frm.StartPosition = FormStartPosition.CenterScreen; //frm.Show(); }
private void btnNew_Click(object sender, EventArgs e) { //this.Close(); master.RemoveCurrentTab(); InsertCompany frm = new InsertCompany(master, tabControl); master.AddNewTab(frm); //frm.StartPosition = FormStartPosition.CenterScreen; //frm.Show(); // tabControl.TabPages.Remove(tabControl.SelectedTab); }
private void cmbaccountName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { //for (int j = 0; j < lvserial.Items.Count; j++) //{ // if (lvserial.Items[j].ToString() == aname && lvserial.Items[j].ToString() == drcr) // { // // DO NOT FILL // MessageBox.Show("Same Account Cannot be Debited And Credited in a Single Voucher."); // } //} e.SuppressKeyPress = true; // This will eliminate the beeping bool inList = false; for (int i = 0; i < cmbaccountName.Items.Count; i++) { s = cmbaccountName.GetItemText(cmbaccountName.Items[i]); if (s == cmbaccountName.Text) { inList = true; cmbaccountName.Text = s; break; } } if (!inList) { cmbaccountName.Text = ""; } txtAmount.Focus(); } if (e.KeyCode == Keys.F3) { var privouscontroal = cmbaccountName; activecontroal = privouscontroal.Name; Accountentry client = new Accountentry(this, master, tabControl, activecontroal); client.Passed(1); // client.Show(); master.AddNewTab(client); } if (e.KeyCode == Keys.F2) { var privouscontroal = cmbaccountName; activecontroal = privouscontroal.Name; string iid = cmbaccountName.SelectedValue.ToString(); Accountentry client = new Accountentry(this, master, tabControl, activecontroal); client.Update(1, iid); client.Passed(1); // client.Show(); master.AddNewTab(client); } }
public void open() { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text; DefaultPOS dlg = new DefaultPOS(master, tabControl); dlg.Update(1, str); // bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, 1); // bd.Show(); master.AddNewTab(dlg); }
private void btnnew_Click(object sender, EventArgs e) { try { Process p = new Process(master, tabControl); master.AddNewTab(p); } catch { } }
private void btnnew_Click(object sender, EventArgs e) { try { Accountentry dlg = new Accountentry(master, tabControl); master.AddNewTab(dlg); dlg.Show(); } catch (Exception ex) { // MessageBox.Show("Error: " + ex.Message); } }
private void SendtoSerialno() { String srno = LVcall.Items[LVcall.FocusedItem.Index].SubItems[6].Text; serialnotrackingreport sr = new serialnotrackingreport(this, master, tabControl, srno); master.AddNewTab(sr); }
public void open() { try { this.Enabled = false; string iid = LVclient.Items[LVclient.FocusedItem.Index].SubItems[0].Text; Ledger le = new Ledger(master, tabControl); DataSet dtrange = ods.getdata("SELECT Company.* FROM Company where CompanyID='" + Master.companyId + "'"); DataTable daterange = dtrange.Tables[0]; // DTPFrom.MinDate = Convert.ToDateTime(dtrange.Tables[0].Rows[0]["Startdate"].ToString()); // DTPFrom.MaxDate = Convert.ToDateTime(dtrange.Tables[0].Rows[0]["Enddate"].ToString()); // DTPFrom.Value = Convert.ToDateTime(dtrange.Tables[0].Rows[0]["Startdate"].ToString()); string stadate = Convert.ToDateTime(daterange.Rows[0]["Startdate"].ToString()).ToString(Master.dateformate); string curdate = DateTime.Now.ToString(Master.dateformate); le.Updateoutstanding(1, iid, stadate, curdate); master.AddNewTab(le); } catch { } finally { this.Enabled = true; } }
private void LVDayBook_MouseDoubleClick(object sender, MouseEventArgs e) { try { this.Enabled = false; String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[1].Text; SaletypeEntry bd = new SaletypeEntry(this, master, tabControl); bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[4].Text); // bd.Show(); master.AddNewTab(bd); } finally { this.Enabled = true; } }
private void btnnew_Click(object sender, EventArgs e) { try { Itementry dlg = new Itementry(master, tabControl); master.AddNewTab(dlg); //dlg.MdiParent = this.MdiParent; //dlg.StartPosition = FormStartPosition.CenterScreen; //this.Hide(); //dlg.Show(); } catch (Exception ex) { // MessageBox.Show("Error: " + ex.Message); } }
public void setform() { try { this.Enabled = false;//optional, better target a panel or specific controls iid = lvstock.Items[lvstock.FocusedItem.Index].SubItems[0].Text; StockAdjustmentReport dlg = new StockAdjustmentReport(master, tabControl); dlg.Update(iid); master.AddNewTab(dlg); } finally { this.Enabled = true; } }
public void open() { iid = lvproduction.Items[lvproduction.FocusedItem.Index].SubItems[12].Text; Production p = new Production(this, master, tabControl); p.Updatedata(iid); master.AddNewTab(p); }
public void open() { iid = lvproduction.Items[lvproduction.FocusedItem.Index].SubItems[7].Text; StockAdjustmentReport p = new StockAdjustmentReport(this, master, tabControl); p.Update(iid); master.AddNewTab(p); }
private void cmbagentname_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress = true; // This will eliminate the beeping bool inList = false; for (int i = 0; i < cmbagentname.Items.Count; i++) { s = cmbagentname.GetItemText(cmbagentname.Items[i]); if (s == cmbagentname.Text) { inList = true; cmbagentname.Text = s; break; } } if (!inList) { cmbagentname.Text = ""; } txtcommission.Focus(); } if (e.KeyCode == Keys.F3) { var privouscontroal = cmbagentname; activecontroal = privouscontroal.Name; Accountentry client = new Accountentry(this, master, tabControl, activecontroal); client.Passed(1); // client.Show(); master.AddNewTab(client); } if (e.KeyCode == Keys.F2) { var privouscontroal = cmbagentname; activecontroal = privouscontroal.Name; string iid = cmbagentname.SelectedValue.ToString(); Accountentry client = new Accountentry(this, master, tabControl, activecontroal); client.Update(1, iid); client.Passed(1); // client.Show(); master.AddNewTab(client); } }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Escape) { // tabControl.TabPages.Remove(tabControl.SelectedTab); DialogResult dr = MessageBox.Show("Do you want to Exit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { master.RemoveCurrentTab(); CompanyList frm = new CompanyList(master, tabControl); master.AddNewTab(frm); } return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
public void open() { String str = lvqp.Items[lvqp.FocusedItem.Index].SubItems[2].Text; QPayment bd = new QPayment(master, tabControl); bd.updatemode(str, lvqp.Items[lvqp.FocusedItem.Index].SubItems[1].Text, 1, lvqp.Items[lvqp.FocusedItem.Index].SubItems[0].Text); master.AddNewTab(bd); }
public void setformstockin() { // this.Enabled = false; string[] strfinalarray = new string[lvstockin.Items.Count]; if (lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[1].Text == "S") { strfinalarray = new string[5] { "S", "D", "Sale", "S", "" }; } else if (lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[1].Text == "P") { strfinalarray = new string[5] { "P", "C", "Purchase", "P", "" }; } else if (lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[1].Text == "SR") { strfinalarray = new string[5] { "SR", "C", "SaleReturn", "SR", "" }; } else if (lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[1].Text == "PR") { strfinalarray = new string[5] { "PR", "D", "PurchaseReturn", "PR", "" }; } String str = lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[2].Text; DataTable dt1 = conn.getdataset("select * from FormFormat where isactive=1 and type='" + strfinalarray[0] + "' and setdefault=1"); DefaultSale bd = new DefaultSale(this, master, tabControl, strfinalarray); // Sale p = new Sale(this, master, tabControl); if (dt1.Rows[0]["formname"].ToString() == bd.Text) { bd.updatemode(str, lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[2].Text, 1, strfinalarray); master.AddNewTab(bd); } //else if (dt1.Rows[0]["formname"].ToString() == p.Text) //{ // p.updatemode(str, lvstockin.Items[lvstockin.FocusedItem.Index].SubItems[2].Text, 1); // master.AddNewTab(p); //} }
private void button1_Click(object sender, EventArgs e) { try { GST_Register_Bill_Wise gst = new GST_Register_Bill_Wise(master, tabControl); master.AddNewTab(gst); } catch { } }
private void cmbPosition_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.SuppressKeyPress = true; // This will eliminate the beeping bool inList = false; for (int i = 0; i < cmbPosition.Items.Count; i++) { s = cmbPosition.GetItemText(cmbPosition.Items[i]); if (s == cmbPosition.Text) { inList = true; cmbPosition.Text = s; break; } } if (!inList) { cmbPosition.Text = ""; } cmbcommtyep.Focus(); } if (e.KeyCode == Keys.F3) { var privouscontroal = cmbPosition; activecontroal = privouscontroal.Name; Employeetype popup = new Employeetype(this, tabControl, master, activecontroal); master.AddNewTab(popup); } if (e.KeyCode == Keys.F2) { var privouscontroal = cmbPosition; activecontroal = privouscontroal.Name; Employeetype dlg = new Employeetype(this, tabControl, master, activecontroal); dlg.Update(Convert.ToString(cmbPosition.SelectedValue)); master.AddNewTab(dlg); // dlg.Show(); } }
public void open() { if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Cheque Issued") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Draft Issued") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Cheque/Draft/Rtgs Received") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Deposit Cash Into Bank") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Withdraw Cash from Bank") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Bank Expenses") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } else if (LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text == "Online Transfer") { String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; BankEntry be = new BankEntry(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text); master.AddNewTab(be); } //String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[11].Text; //DebitandCreditNote be = new DebitandCreditNote(master, tabControl); //be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[3].Text,debitorcredit); //master.AddNewTab(be); }
public void Open() { try { iid = lvprolist.Items[lvprolist.FocusedItem.Index].SubItems[5].Text; FinishedGoods p = new FinishedGoods(this, master, tabControl); p.Updatedata(iid); master.AddNewTab(p); } catch { } }
private void btnnew_Click(object sender, EventArgs e) { //DefaultPOS dp = new DefaultPOS(master,tabControl); //master.AddNewTab(dp); DataTable dt1 = sql.getdataset("select * from FormFormat where isactive=1 and type='POS' and setdefault=1"); POSNEW bd = new POSNEW(); DefaultPOS p = new DefaultPOS(master, tabControl); if (dt1.Rows[0]["formname"].ToString() == p.Text) { master.AddNewTab(p); //bd.MdiParent = this.MdiParent; //bd.StartPosition = FormStartPosition.CenterScreen; //bd.Show(); } else { bd.Size = new Size(this.Height, this.Width); bd.StartPosition = FormStartPosition.CenterScreen; bd.ShowDialog(); } //dp.Show(); }
public void open() { //String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text; //DefaultPOS dlg = new DefaultPOS(master, tabControl); //dlg.Update(1, str); //// bd.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text, 1); //// bd.Show(); //master.AddNewTab(dlg); try { this.Enabled = false; //iid = LVbill.Items[LVbill.FocusedItem.Index].SubItems[1].Text; String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[0].Text; DataTable dt1 = conn.getdataset("select * from FormFormat where isactive=1 and type='POS' and setdefault=1"); POSNEW bd = new POSNEW(); DefaultPOS dlg = new DefaultPOS(master, tabControl); if (dt1.Rows[0]["formname"].ToString() == dlg.Text) { dlg.Update(1, str); master.AddNewTab(dlg); dlg.Show(); } else { bd.Update(1, str); bd.Size = new Size(this.Height, this.Width); bd.StartPosition = FormStartPosition.CenterScreen; bd.ShowDialog(); } } finally { this.Enabled = true; } }
public void open() { try { string[] debitorcredit = new string[5] { "C", "", "", "", "" }; String str = LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[6].Text; DebitandCreditNote be = new DebitandCreditNote(master, tabControl); be.updatemode(str, LVDayBook.Items[LVDayBook.FocusedItem.Index].SubItems[1].Text, debitorcredit); master.AddNewTab(be); } catch { } }
private void btnplace_Click(object sender, EventArgs e) { try { string[] strfinalarray = new string[5] { "P", "C", "Purchase", "P", "" }; DataTable dt1 = conn.getdataset("select * from FormFormat where isactive=1 and type='" + strfinalarray[0] + "' and setdefault=1"); DefaultSale bd = new DefaultSale(master, tabControl, strfinalarray); if (dt1.Rows[0]["formname"].ToString() == bd.Text) { master.AddNewTab(bd); } } catch { } }
public void open() { try { this.Enabled = false; iid = LVpos.Items[LVpos.FocusedItem.Index].SubItems[1].Text; DefaultPOS dlg = new DefaultPOS(master, tabControl); dlg.Update(1, iid); master.AddNewTab(dlg); dlg.Show(); } finally { this.Enabled = true; } }
private void button1_Click(object sender, EventArgs e) { try { userrights = conn.getdataset("Select * from UserRights where isactive=1 and uid='" + Master.userid + "'"); if (userrights.Rows.Count > 0) { if (userrights.Rows[41]["a"].ToString() == "True") { GST_Register_Bill_Wise gst = new GST_Register_Bill_Wise(master, tabControl); master.AddNewTab(gst); } else { MessageBox.Show("You Don't Have Permission to View"); return; } } } catch { } }