Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #8
0
        public static SqlDataReader GetListAcctCodes() //************************Added 11/20
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

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

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

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

            return(dbDt.GetListbyDeptLeadForUpdate(deptID, leadID));
        }
Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #15
0
        public static SqlDataReader GetList()
        {
            CDbDrawingLog dbDt = new CDbDrawingLog();

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(dbDt.GetJobStatListByDeptID(deptID, sortCode));
        }
Beispiel #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));
        }