private void btmOK_Click(object sender, EventArgs e) { this.btmOK.Enabled = false; this.sgoUpdate.dtDate = this.dtpDate.Value; this.sgoUpdate.intGroupNumber = int.Parse(this.tbGroupNumber.Text.Trim()); this.sgoUpdate.intNumber = int.Parse(this.tbNumber.Text.Trim()); this.sgoUpdate.Update(this.cnConnection); StoreGetOuts frmStoreGetOuts = (StoreGetOuts)this.Owner; frmStoreGetOuts.SearchRequests(); this.Close(); }
private void btmOK_Click(object sender, EventArgs e) { this.btmOK.Enabled = false; this.sgoInsert.dtDate = this.dtpDate.Value; this.sgoInsert.intGroupNumber = int.Parse(this.tbGroupNumber.Text.Trim()); this.sgoInsert.strRequesterCoID = this.usLogined.strCoID; this.sgoInsert.intDepartment = this.emLogined.intDepartment; this.sgoInsert.intSubDepartment = this.emLogined.intSubDepartment; this.sgoInsert.Insert(this.cnConnection); StoreGetOuts frmStoreGetOuts = (StoreGetOuts)this.Owner; frmStoreGetOuts.SearchRequests(); this.Close(); }
private void MensTechnicalDepartmentStoreGetOuts_Click(object sender, EventArgs e) { if (!StoreGetOuts.bolIsRunning) { ToolStripMenuItem menWindowsTechnicalDepartmentStoreGetOuts = new ToolStripMenuItem(); menWindowsTechnicalDepartmentStoreGetOuts.Name = "menWindowsStoreGetOuts"; menWindowsTechnicalDepartmentStoreGetOuts.Text = "درخواستهای کالا از انبار"; menWindowsTechnicalDepartmentStoreGetOuts.Click += new System.EventHandler(this.menWindowsTechnicalDepartmentStoreGetOuts_Click); this.menWindows.DropDownItems.Add(menWindowsTechnicalDepartmentStoreGetOuts); StoreGetOuts frmStoreGetOuts = new StoreGetOuts(); frmStoreGetOuts.MdiParent = this; frmStoreGetOuts.setSettings = this.setSettings; frmStoreGetOuts.cnConnection = this.cnConnection; frmStoreGetOuts.usLogined = this.usLogined; frmStoreGetOuts.emLogined = this.emLogined; frmStoreGetOuts.Show(); frmStoreGetOuts.WindowState = FormWindowState.Maximized; } }