Exemple #1
0
        //根据是否生产获取大线
        private string GetBigLineListInProduct(bool isInProduct)
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);
            string           returnString     = string.Empty;

            string[] bigLine = _BigLineList.Trim().ToUpper().Split(',');

            DBDateTime now = FormatHelper.GetNowDBDateTime(this.DataProvider);

            for (int i = 0; i < bigLine.Length; i++)
            {
                if (isInProduct && watchPanelFacade.CheckLineIsProduct(bigLine[i].ToString(), now.DBDate, now.DBTime))
                {
                    returnString += "," + bigLine[i].Trim().ToUpper().ToString();
                }

                if (!isInProduct && !watchPanelFacade.CheckLineIsProduct(bigLine[i].ToString(), now.DBDate, now.DBTime))
                {
                    returnString += "," + bigLine[i].Trim().ToUpper().ToString();
                }
            }

            if (returnString.Length > 0)
            {
                returnString = returnString.Substring(1);
            }

            return(returnString);
        }