partial void GenerateNewDocument_Execute() { CreateNewDocument nd = new CreateNewDocument(); if (DisplayProjectTasksOnly) { nd.GenerateFromAddNew("COPT", this.DesignLogProperty, this.DataWorkspace.MDSData.Tasks, true); } else { nd.GenerateFromAddNew("COPT", this.DesignLogProperty, this.DataWorkspace.MDSData.Tasks, false); } }
partial void CreateReport_Execute() { CreateNewDocument nd = new CreateNewDocument(); if (this.CADOfficeProjTS.SelectedItem.Project != null) { nd.GenerateFromAddNew("COPT", this.CADOfficeProjTS.SelectedItem, this.DataWorkspace.MDSData.Tasks); } else { nd.GenerateFromAddNew("COPT", this.CADOfficeProjTS.SelectedItem, this.DataWorkspace.MDSData.Tasks, false); } }
partial void CreateNewCADOfficeTS_Saved() { this.Close(false); Application.Current.ShowDefaultScreen(this.DesignLogProperty); CreateNewDocument nd = new CreateNewDocument(); if (DisplayProjectTasksOnly) { nd.GenerateFromAddNew("COPT", this.DesignLogProperty, this.DataWorkspace.MDSData.Tasks, true); } else { nd.GenerateFromAddNew("COPT", this.DesignLogProperty, this.DataWorkspace.MDSData.Tasks, false); } }
partial void CreateNewTransmittal_Saved() { this.Close(false); Application.Current.ShowDefaultScreen(this.TransmittalProperty); CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("DT", this.TransmittalProperty, this.DataWorkspace.MDSData.TransmittalDocs); }
partial void CreateNewTechnicalQuery_Saved() { this.Close(false); Application.Current.ShowDefaultScreen(this.TQDetailProperty); CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("TQ", this.TQDetailProperty, IsProjectTQ); }
partial void CreateNewRFI_Saved() { this.Close(false); Application.Current.ShowDefaultScreen(this.RFIProperty); CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("RFI", this.RFIProperty, IsProjectRFI); }
partial void CreateNewCofC_Saved() { // Write your code here. this.Close(false); Application.Current.ShowDefaultScreen(this.CofCProperty); CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("CofC", this.CofCProperty, this.DataWorkspace.MDSData.CofCDocs); }
partial void CreateNewDandDC_Saved() { this.Close(false); Application.Current.ShowDefaultScreen(this.DandDCProperty); CreateNewDocument nd = new CreateNewDocument(); //need to update the list of users if it has changed. nd.UpdateUserStrings("DDC", this.DandDCProperty); //and then generate our new document. nd.GenerateFromAddNew("DDC", this.DandDCProperty, this.DataWorkspace.MDSData.Reviews); }
partial void ListTasksByMonth_Saving(ref bool handled) { //add a new COPT if needed. IEnumerable <CADOfficeProjT> foundCOPT = (from CADOfficeProjT a in this.DataWorkspace.MDSData.CADOfficeProjTS where a.COPTNumber == copt.COPTNumber select a).AsEnumerable(); if (foundCOPT.Count <CADOfficeProjT>() == 0) { //CADOfficeProjT newCopt = this.DataWorkspace.MDSData.CADOfficeProjTS.AddNew(); //newCopt.Customer = copt.Customer; //newCopt.Project = copt.Project; //newCopt.Month = copt.Month; //newCopt.COPTNumber = copt.COPTNumber; //newCopt.Year = copt.Year; //newCopt.StartDate = copt.StartDate; //newCopt.UserName = copt.UserName; this.DataWorkspace.MDSData.SaveChanges(); } CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("COPT", copt, this.DataWorkspace.MDSData.Tasks, false); }
partial void GenerateNewDocument_Execute() { CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("COPT", copt, this.DataWorkspace.MDSData.Tasks, true, true); }
partial void PrintSelectedDocument_Execute() { CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("COPT", copt, this.DataWorkspace.MDSData.Tasks); }
partial void PrintNewDocument_Execute() { CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("DT", this.Transmittals.SelectedItem, this.DataWorkspace.MDSData.TransmittalDocs); }
partial void PrintNewDocument_Execute() { CreateNewDocument nd = new CreateNewDocument(); nd.GenerateFromAddNew("DDC", this.DandDCs.SelectedItem, this.DataWorkspace.MDSData.Reviews); }