Esempio n. 1
0
        /// <summary>
        /// Get production line code by ID
        /// </summary>
        /// <param name="pintProductionLineID"></param>
        /// <returns></returns>
        /// <author>Trada</author>
        /// <date>Wednesday, Mar 22 2006</date>

        public DataTable GetProductionLineCode(int pintProductionLineID)
        {
            DataTable            dtbReturn        = new DataTable();
            PRO_ProductionLineDS dsProductionLine = new PRO_ProductionLineDS();

            dtbReturn = dsProductionLine.GetProductionLineByID(pintProductionLineID);
            return(dtbReturn);
        }
Esempio n. 2
0
        /// <summary>
        /// Get Production Line by ID
        /// </summary>
        /// <param name="pintProductionLineID"></param>
        /// <returns></returns>
        /// <author>Trada</author>
        /// <date>wednesday, January 4 2006</date>

        public string GetProductionLineByID(int pintProductionLineID)
        {
            string strProductionLine = string.Empty;
            PRO_ProductionLineDS dsPRO_ProductionLine = new PRO_ProductionLineDS();
            PRO_ProductionLineVO voPRO_ProductionLine = (PRO_ProductionLineVO)dsPRO_ProductionLine.GetObjectVO(pintProductionLineID);

            if (voPRO_ProductionLine.Code != string.Empty)
            {
                strProductionLine = voPRO_ProductionLine.Code;
            }
            return(strProductionLine);
        }
Esempio n. 3
0
        public int GetMainWorkCenter(int pintProductionLineID)
        {
            PRO_ProductionLineDS dsProLine     = new PRO_ProductionLineDS();
            DataTable            dtbWorkCenter = dsProLine.GetWorkCenterByProductionLine(pintProductionLineID);

            DataRow[] drowMain = dtbWorkCenter.Select(MST_WorkCenterTable.ISMAIN_FLD + "=1");
            if (drowMain.Length > 0)
            {
                return(Convert.ToInt32(drowMain[0][MST_WorkCenterTable.WORKCENTERID_FLD]));
            }
            else
            {
                return(0);
            }
        }
Esempio n. 4
0
        public DataSet List()
        {
            PRO_ProductionLineDS dsPro = new PRO_ProductionLineDS();

            return(dsPro.List());
        }
Esempio n. 5
0
        /// <summary>
        /// Gets all Production Line
        /// </summary>
        /// <param name="pintCCNID">CCN</param>
        /// <returns>DataTable</returns>

        public DataTable GetAllProductionLine(int pintCCNID)
        {
            PRO_ProductionLineDS dsProductionLine = new PRO_ProductionLineDS();

            return(dsProductionLine.List(pintCCNID));
        }