Example #1
0
        public int Save_Update() //********************************Added 10/8/2015
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();
            string        tmpDat;
            int           retVal = 0;

            //    tmpDat = GetDataString_Test();
            tmpDat = GetDataString();

            if (base.ID > 0)
            {
                // dbDt.SavePrev_Test(tmpDat);
                dbDt.SavePrev(tmpDat);
                retVal = base.ID;
            }
            else
            {
                //retVal = dbDt.SaveNew_Test(tmpDat);
                base.ID = retVal;
            }

            dbDt = null;

            return(retVal);
        }
Example #2
0
        public static SqlDataReader GetExportListForDrawingLog(string dXml, string pXml, int sortCode, int drwgSpec)//*****************Added 10/2/2015
        {
            //  CDbBudgetLine dbDt = new CDbBudgetLine();

            // return dbDt.GetExportListByBudget(budID);
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByDeptListProjList_Test(dXml, pXml, sortCode, drwgSpec));
        }
Example #3
0
        public void Load(int iID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();
            string        tmpDat;

            tmpDat = dbDt.GetByID(iID);

            Clear();
            if (tmpDat.Length > 0)
            {
                LoadVals(tmpDat);
            }

            dbDt = null;
        }
Example #4
0
        public int SaveNewImport()
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();
            string        tmpDat;
            int           retVal;

            tmpDat = GetDataString();

            retVal  = dbDt.SaveNewImport(tmpDat);
            base.ID = retVal;

            dbDt = null;

            return(retVal);
        }
Example #5
0
        public int Save()
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();
            string        tmpDat;
            int           retVal;

            tmpDat = GetDataString();

            if (base.ID > 0)
            {
                dbDt.SavePrev(tmpDat);
                retVal = base.ID;
            }
            else
            {
                retVal  = dbDt.SaveNew(tmpDat);
                base.ID = retVal;
            }

            dbDt = null;

            return(retVal);
        }
Example #6
0
        public static dsDrawingLog GetDrawingLogMainByLeadList(string dXml, string lXml, int sortCode, int drwgSpec)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByLeadList(dXml, lXml, sortCode, drwgSpec));
        }
Example #7
0
        public static dsDrawingLog GetDrawingLogMainByDeptListProjList(string dXml, string pXml, int sortCode, int drwgSpec)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByDeptListProjList(dXml, pXml, sortCode, drwgSpec));
        }
Example #8
0
        public static SqlDataReader GetListAcctCodes() //************************Added 11/20
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetListAcctCodes());
        }
Example #9
0
        public static void DeleteDrawingLogByProject(int projID)
        {
            CDbDrawingLog dl = new CDbDrawingLog();

            dl.DeleteDrawingLogByProject(projID);
        }
Example #10
0
        public static dsDrawingLog GetCustomerDrawingLogMainByDeptListProjList(string dXml, string pXml, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByDeptListProjList(dXml, pXml, sortCode, 0));
        }
Example #11
0
        public static DataSet GetListByDeptLeadForUpdate(int deptID, int leadID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetListbyDeptLeadForUpdate(deptID, leadID));
        }
Example #12
0
        public static void UpdateHours(int lID, decimal budHrs, decimal percComp, decimal ernHrs, decimal remHrs)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            dbDt.UpdateHours(lID, budHrs, percComp, ernHrs, remHrs);
        }
Example #13
0
        public static SqlDataReader GetExportListForDrawingLog_Lead(string dXml, string lXml, int sortCode, int drwgSpec)//*****************Added10/2/2015
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByLeadList_Test(dXml, lXml, sortCode, drwgSpec));
        }
Example #14
0
        public static DataSet GetListbyDeptProjForUpdate(int deptID, int projID, string wbs, bool sortByCAD)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetListbyDeptProjForUpdate(deptID, projID, wbs, true));
        }
Example #15
0
        public static SqlDataReader GetList()
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetList());
        }
Example #16
0
        public static SqlDataReader GetWBSListByProject(int projectID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetWBSListByProject(projectID));
        }
Example #17
0
        public static SqlDataReader GetListbyDeptProjForTransNoTask(int deptID, int projID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetListbyDeptProjForTransNoTask(deptID, projID));
        }
Example #18
0
        public static dsDrawingLog GetCustomerDrawingLogForRprt(int deptID, int projID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogForRprt(deptID, projID));
        }
Example #19
0
        public static void UpdateProjectLead(int deptID, int projId, int projLeadID)
        {
            CDbDrawingLog dl = new CDbDrawingLog();

            dl.UpdateProjectLead(deptID, projId, projLeadID);
        }
Example #20
0
        public static dsDrawingLog GetCustomerDrawingLogMainByProjList(string pXml, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return((dsDrawingLog)dbDt.GetDrawingLogMainByProjList(pXml, sortCode, 0));
        }
Example #21
0
        public static DataSet GetJobStatForRprt(int deptID, int projID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetJobStatForRprt(deptID, projID));
        }
Example #22
0
        public static dsDrawingLog GetCustomerDrawingLogMainByLeadList(string dXml, string lXml, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetDrawingLogMainByLeadList(dXml, lXml, sortCode, 0));
        }
Example #23
0
        public static void Delete(int cID)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            dbDt.Delete(cID);
        }
Example #24
0
        public static bool DrawingLogExists(int projectID)
        {
            CDbDrawingLog dl = new CDbDrawingLog();

            return(dl.DrawingLogExists(projectID));
        }
Example #25
0
        public static DataSet GetJobStatListByDeptListProjList(string dXml, string pXml, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetJobStatListByDeptListProjList(dXml, pXml, sortCode));
        }
Example #26
0
        public static string GetDescriptionByID(int lID)
        {
            CDbDrawingLog dl = new CDbDrawingLog();

            return(dl.GetDescriptionByID(lID));
        }
Example #27
0
        public static DataSet GetJobStatListByLeadList(string dXml, string lXml, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetJobStatListByLeadList(dXml, lXml, sortCode));
        }
Example #28
0
        public static DataSet GetJobStatListByDeptID(int deptID, int sortCode)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetJobStatListByDeptID(deptID, sortCode));
        }
Example #29
0
        public static SqlDataReader GetListByDeptProj(int dID, int pID, string wbs, int sortCol, bool sortAsc)
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

            return(dbDt.GetListbyDeptProj(dID, pID, wbs, sortCol, sortAsc));
        }