Ejemplo n.º 1
0
 void ReleaseDocsUpdate(dsReleaseDocs docs, dsReleaseDocs dels)
 {
     mdsRelDocs      = (dsReleaseDocs)docs.Copy();
     mdsRelDeletes   = (dsReleaseDocs)dels.Copy();
     statusDocs.Text = mdsRelDocs.Tables["ReleaseDocs"].Rows.Count.ToString() + " Document(s)";
     EnableSave();
 }
Ejemplo n.º 2
0
        private void ClearForm()
        {
            moTrans = new CBTransmittalRelease();

            dsSendToList  = new dsSendTo();
            dsCCList      = new dsSendTo();
            mdsRelDocs    = new dsReleaseDocs();
            mdsRelDeletes = new dsReleaseDocs();

            dtpDateRelease.Value      = DateTime.Now;
            txtIssueBy.Text           = "";
            txtProject.Tag            = "";
            txtProject.Text           = "";
            rdoRelPreliminary.Checked = true;
            chkSendPickup.Checked     = false;
            chkSendDelivery.Checked   = false;
            chkSendOther.Checked      = false;
            chkSendRegMail.Checked    = false;
            chkSendERoom.Checked      = false;
            chkSendPdf.Checked        = false;
            chkSendDxf.Checked        = false;
            chkSendDwg.Checked        = false;
            chkSendGround.Checked     = false;
            chkSendSecDay.Checked     = false;
            chkSendNextDay.Checked    = false;
            rtbComments.Text          = "";

            tdbgSendTo.SetDataBinding(dsSendToList, "SendToList", true);
            tdbgCarbonCopy.SetDataBinding(dsCCList, "SendToList", true);

            dsTypes = CBTransmittalTypes.GetListDS();
            tdbddTypes.SetDataBinding(dsTypes, "Table", true);
            tdbddTypes2.SetDataBinding(dsTypes, "Table", true);
        }
Ejemplo n.º 3
0
        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;
        }