示例#1
0
文件: SetupForm.cs 项目: bug8975/FET
        //WIFI
        private void WIFI_Click(object sender, EventArgs e)
        {
            XtraForm1 xf = new XtraForm1();

            xf.ShowDialog();
            xf.Dispose();
        }
示例#2
0
 private void rptBalanceSheet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Reports.Accountbooks.Grids.BalanceSheetGrd frm;
     frm          = new Reports.Accountbooks.Grids.BalanceSheetGrd(); //generate new instance
     frm.Owner    = this;
     frm.TopLevel = false;
     splitContainerControl1.Panel2.Controls.Add(frm);
     frm.Show();
 }
示例#3
0
        private void VatJournal_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.VATJournal frm;
            frm          = new Transactions.VATJournal(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            splitContainerControl1.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#4
0
        private void barButtonItem18_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.Adjustexciseamounts frm;
            frm = new Transactions.Adjustexciseamounts(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#5
0
        private void barbtnGSTDetails_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Administration.GSTDetails frm;
            frm = new Administration.GSTDetails(); //generate new instance 
            frm.Owner = this;
            frm.TopLevel = false;

            sptCtrlMastermenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#6
0
 protected internal override void ButtonClick(string tag)
 {
     switch (tag)
     {
     case "NewUser1":
         XtraForm1 form = new XtraForm1();
         form.ShowDialog();
         break;
     }
 }
示例#7
0
        private void FormIssued_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.formsissuedvoucher frm;
            frm          = new Transactions.formsissuedvoucher(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            splitContainerControl1.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#8
0
        private void Callreceipt_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.CallReceipt frm;
            frm = new Transactions.CallReceipt(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#9
0
        private void FormsRecevied_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.formsreceivedvoucher frm;
            frm          = new Transactions.formsreceivedvoucher(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#10
0
        private void Physicalstockvch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.PhysicalStockvoucher frm;
            frm = new Transactions.PhysicalStockvoucher(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#11
0
        private void MatIssuedparty_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.Matissuedtopartyvoucher frm;
            frm          = new Transactions.Matissuedtopartyvoucher(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#12
0
        private void MatRcvdpary_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.Matreceivedfromparty frm;
            frm          = new Transactions.Matreceivedfromparty(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#13
0
        private void PurchaseretVoucher_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.PurhcaseReturnvoucher frm;
            frm          = new Transactions.PurhcaseReturnvoucher(); //generate new instance
            frm.Owner    = this;
            frm.TopLevel = false;

            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#14
0
        private void btnMarkupStructure_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Administration.MarkupStructureMaster frm;
            frm = new Administration.MarkupStructureMaster(); //generate new instance 
            frm.Owner = this;
            frm.TopLevel = false;

            sptCtrlMastermenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#15
0
        private void Inventory_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Settings.Inventorysettings frm;
            frm = new Settings.Inventorysettings(); //generate new instance
            //frm.Owner = this;
            //frm.TopLevel = false;

            //spli.Panel2.Controls.Add(frm);
            frm.ShowDialog();
        }
示例#16
0
        private void SalesOrder_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //MessageBox.Show("Under Progeress.........");
            Transactions.Salesorder frm;
            frm = new Transactions.Salesorder(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#17
0
        private void PurchaseQuotation_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //MessageBox.Show("Under Progeress.........");
            Transactions.purchaseQuotation frm;
            frm = new Transactions.purchaseQuotation(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            splitContainerControl1.Panel2.Controls.Add(frm);
            frm.Show();
        }
示例#18
0
        private void btnLogIN_Click(object sender, EventArgs e)
        {
            string emailUser = txtEmailLogIN.Text;

            using (var mes = new DataContext())
            {
                mes.Database.CreateIfNotExists();
                var logInUser = mes.SenderUsers.Where(s => s.Username.ToLower() == emailUser.ToLower()).FirstOrDefault();
                if (logInUser == null)
                {
                    MessageBox.Show("UsernameIncorrect");
                }
                else
                {
                    if (logInUser.Password == txtPasswordLogIN.Text)
                    {
                        // MessageBox.Show("Welcome");
                        //var contextChat = new DataContext();
                        //LogUser currentLog = new LogUser();
                        //currentLog.ID = Guid.NewGuid();
                        //currentLog.IsLogIn = true;
                        //currentLog.IsLogOut = false;
                        //currentLog.CreationDate = DateTime.UtcNow;
                        //currentLog.UpdatedDate = DateTime.UtcNow;
                        //currentLog.userId = logInUser.ID;
                        //contextChat.Entry(currentLog).State = System.Data.Entity.EntityState.Added;
                        //contextChat.SaveChanges();
                        //// update status User
                        //statusUser stUser = mes.StatusUser.Where(s => s.UserID == logInUser.ID).FirstOrDefault();
                        //if(stUser!=null)
                        //{
                        //    if(!stUser.IsOnline)
                        //    {
                        //        stUser.IsOnline = true;
                        //        stUser.UpdateDate = DateTime.UtcNow;
                        //        mes.Entry(stUser).State = System.Data.Entity.EntityState.Modified;
                        //    }
                        //}

                        //mes.SaveChanges();
                        // end update Status User
                        this.Hide();
                        XtraForm1 usertChat = new XtraForm1(logInUser);
                        usertChat.ShowDialog();
                        this.Close();
                    }
                    else
                    {
                        MessageBox.Show("Password InCorrect");
                    }
                }
            }
        }
示例#19
0
        private void barbtnAccGroup_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Administration.Accountgroup frm;
            frm = new Administration.Accountgroup(); //generate new instance 
            frm.Owner = this;
            frm.TopLevel = false;

            sptCtrlMastermenu.Panel2.Controls.Add(frm);
            frm.Show();
            //if (this.ActiveMdiChild != null)
            //    this.ActiveMdiChild.Close();
            //Administration.Accountgroup frmaccgrp = new Administration.Accountgroup();
            //frmaccgrp.MdiParent = this;
            //frmaccgrp.Show();
            //sptCtrlMastermenu.Panel2.Controls.Add(frmaccgrp);
        }
示例#20
0
        public void LoadForms(string name)
        {
            string selectedPage = name;

            switch (selectedPage)
            {
                case "Unit Master":
                    Administration.Unitmaster frm;
                    frm = new Administration.Unitmaster(); //generate new instance 
                    frm.Owner = this;
                    frm.TopLevel = false;

                    sptCtrlMastermenu.Panel2.Controls.Add(frm);
                    frm.Show();
                    break;
                //case "Reports":
                //    this.Hide();
                //    IPCAUI.Menu.ReportMenu frmReport = new IPCAUI.Menu.ReportMenu(this);
                //    frmReport.Show();
                //    break;
                //case "Transactions":
                //    this.Hide();
                //    IPCAUI.Menu.TransactionsMenu frmTransMenu = new IPCAUI.Menu.TransactionsMenu(this);
                //    frmTransMenu.Show();
                //    break;
                //case "Master":
                //    this.Hide();
                //    IPCAUI.Menu.MastersMenu frmMasterMenu = new IPCAUI.Menu.MastersMenu(this);
                //    frmMasterMenu.Show();
                //    break;
                //case "Configuration":
                //    this.Hide();
                //    IPCAUI.Menu.ConfigurationMenu frmConfigMenu = new IPCAUI.Menu.ConfigurationMenu(this);
                //    frmConfigMenu.Show();
                //    break;
                //case "Merged Accounts":
                //    break;
                //case "Single Column":
                //    break;
                //case "Multiple Column":
                //    break;
                //case "Bank Book(As per Clr.Date)":
                //    break;
                default:
                    break;
            }
        }
示例#21
0
        private void Payment_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Transactions.PaymentVoucher frm;
            frm = new Transactions.PaymentVoucher();     //generate new instance
            //frm.Owner = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();

            //if (this.ActiveMdiChild != null)
            //    //this.MdiChild.Clone();
            //    this.ActiveMdiChild.Close();

            //IPCAUI.Transactions.PaymentVoucher frmPayment = new Transactions.PaymentVoucher();
            //frmPayment.StartPosition = FormStartPosition.WindowsDefaultLocation;
            //frmPayment.MdiParent = this;
            //frmPayment.Show();
            //splitContainerControl1.Panel2.Controls.Add(frmPayment);
        }
示例#22
0
        private void SalesEntry_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //MessageBox.Show("Under Progeress.........");
            Transactions.Purchaseindentvoucher frm;
            frm = new Transactions.Purchaseindentvoucher(); //generate new instance

            frm.Owner    = this;
            frm.TopLevel = false;
            spCtrlTransMenu.Panel2.Controls.Add(frm);
            frm.Show();
            //}
            //else
            //{
            //    frm = new Transactions.SalesVoucher(); //generate new instance

            //    frm.Owner = this;
            //    frm.TopLevel = false;
            //    splitContainerControl1.Panel2.Controls.Add(frm);
            //    frm.Show();
            //}

            //if (this.ActiveMdiChild != null)
            ////    this.ActiveMdiChild.Close();
            //{

            //    Transactions.SalesVoucher frmSales = new Transactions.SalesVoucher();
            //    frmSales.StartPosition = FormStartPosition.WindowsDefaultLocation;
            //    frmSales.MdiParent = this.ParentForm;
            //    frmSales.Show();
            //    splitContainerControl1.Panel2.Controls.Add(frmSales);
            // }
            //else
            //{
            //Transactions.SalesVoucher frmSales = new Transactions.SalesVoucher();
            //frmSales.StartPosition = FormStartPosition.WindowsDefaultLocation;
            //frmSales.MdiParent = this;
            //frmSales.Show();
            //splitContainerControl1.Panel2.Controls.Add(frmSales);
            //}
        }
示例#23
0
        //XtraForm1 frmMainObj = null;

        public OpenCompany(XtraForm1 frmMain)
        {
            InitializeComponent();
            //  this.frmMainObj = frmMain;
        }
示例#24
0
 public TransactionsMenu(XtraForm1 frm)
 {
     InitializeComponent();
     this.frm = frm;
 }
示例#25
0
 public MastersMenu(XtraForm1 frm)
 {
     InitializeComponent();
     this.frm = frm;
 }
示例#26
0
 public CompanyMenu(XtraForm1 frm)
 {
     InitializeComponent();
     this.frm = frm;
 }
示例#27
0
 public ReportMenu(XtraForm1 frm)
 {
     InitializeComponent();
     this.frm = frm;
 }
示例#28
0
 public ConfigurationMenu(XtraForm1 frm)
 {
     InitializeComponent();
     this.frm = frm;
 }
示例#29
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            XtraForm1 frm = new XtraForm1();

            frm.ShowDialog();
        }