private void ClearForm() { miDeptID = 0; miProjID = 0; miIssueID = 0; txtTranNumSuffix.Text = ""; txtTranNumPrefix.Text = ""; pictureBox1.Image = imageList1.Images[5]; ddtpTranDate.Value = DateTime.Now; txtSentBy.Text = ""; txtTranCC.Text = ""; txtSubCategory.Text = ""; txtTranTo.Text = ""; txtProjectLine.Text = ""; txtProject.Text = ""; rtbRemarks.Text = ""; chkWeTransmit.Checked = false; chkUnderSepCover.Checked = false; chkDrawings.Checked = false; chkSpecifications.Checked = false; chkCommentOrApporval.Checked = false; chkReleaseForConst.Checked = false; chkCorrespondence.Checked = false; chkBrochures.Checked = false; chkSentByEmail.Checked = false; chkSentByMail.Checked = false; chkApprovalAsNoted.Checked = false; chkReturnFor.Checked = false; chkSentByMessenger.Checked = false; chkSentByOvernight.Checked = false; txtDepartment.Text = ""; lvwDocList.Items.Clear(); bttRemove.Enabled = false; tssStatus1.Text = "Transmittal No.:"; tssStatus2.Text = "0 Document(s)"; tabPage1.Select(); tlbbSave.Enabled = false; tlbbPrint.Enabled = false; COAppState aps = new COAppState(); CBDepartment d = new CBDepartment(); aps.InitAppSettings(); miDeptID = aps.Sch_LastDeptID; d.Load(miDeptID); txtDepartment.Text = d.Name; timer1.Enabled = true; }
void pl_OnItemSelected(int itmID) { FPCIList pcil = new FPCIList(); COAppState aps = new COAppState(); aps.InitAppSettings(); pcil.OnPCISelected += new RevSol.ItemMultiSelectHandler(pcil_OnPCISelected); pcil.SetDefaultDepartment(aps.Sch_LastDeptID); pcil.SetProjectID(itmID); pcil.ShowDialog(); }
void NewProjectLead(int itmID) { CBEmployee e = new CBEmployee(); e.Load(itmID); txtProjectLead.Text = e.Name; miCurrLead = itmID; // save new lead to file COAppState app = new COAppState(); app.InitAppSettings(); app.Sch_EmplyID = itmID; app.SaveAppSettings(); LoadListForGrouping(); }
private void ClearForm() { COAppState aps = new COAppState(); CBDepartment d = new CBDepartment(); aps.InitAppSettings(); miCurrDept = aps.Sch_LastDeptID; miCurrLead = aps.Sch_EmplyID; d.Load(miCurrDept); txtDepartment.Text = d.Name; timer1.Enabled = true; CellStyle s = fgQuikUpdate.Styles.Add("ActualValues"); s.ForeColor = Color.Transparent; }
private void ClearForm() { COAppState aps = new COAppState(); CBDepartment d = new CBDepartment(); aps.InitAppSettings(); miCurrDept = aps.Sch_LastDeptID; d.Load(miCurrDept); miCurrLead = 0; txtDepartment.Text = d.Name; ClearLog(); LoadActivityCodes(); LoadDrawingSizes(); LoadIssuedAs(); }
private void ClearForm() { COAppState aps = new COAppState(); CBDepartment d = new CBDepartment(); aps.InitAppSettings(); miDeptID = aps.Sch_LastDeptID; d.Load(miDeptID); txtDepartment.Text = d.Name; mdtPick = new DateTimePicker(); mdsRelDocs = new dsReleaseDocs(); mdsRelDeletes = new dsReleaseDocs(); tdbgDocList.Columns["Date"].Editor = mdtPick; tdbgDocList.SetDataBinding(mdsRelDocs, "ReleaseDocs", true); timer1.Enabled = true; }