コード例 #1
0
        private void RefreshGsStatusNum(long houseID, int rowth)
        {
            //DataTable dtStatusNum = bllGs.GetStatusNum(houseID, rowth);
            //DataTable gsLockNum = bllGs.GetGsLockCount(houseID, rowth);
            //DataTable fobitNum = bllGs.GetForbitGsCount(houseID, rowth);


            int nullBoxNum  = bllGs.GetNullBoxCount(houseID, rowth);
            int productNum  = bllGs.GetFullGsCount(houseID, rowth);
            int idleNum     = bllGs.GetIdleGsCount(houseID, rowth);
            int taskLockNum = bllGs.GetGsLockCount(houseID, rowth);
            int forbitNum   = bllGs.GetForbitGsCount(houseID, rowth);

            //for (int i = 0; i < gsLockNum.Rows.Count; i++)
            //{
            //    taskLockNum += int.Parse(gsLockNum.Rows[i][0].ToString());
            //}
            //for (int i = 0; i < fobitNum.Rows.Count; i++)
            //{
            //    forbitNum += int.Parse(fobitNum.Rows[i][0].ToString());
            //}

            //for (int i = 0; i < dtStatusNum.Rows.Count; i++)
            //{
            //    nullNum += int.Parse(dtStatusNum.Rows[i][0].ToString());
            //    productNum += int.Parse(dtStatusNum.Rows[i][1].ToString());
            //    nullFramNum += int.Parse(dtStatusNum.Rows[i][2].ToString());
            //    // taskLockNum += int.Parse(dtStatusNum.Rows[i][3].ToString());
            //    //  forbitNum += int.Parse(dtStatusNum.Rows[i][4].ToString());
            //}
            this.view.RefreshGSStatsuNum(nullBoxNum, productNum, idleNum, taskLockNum, forbitNum);
        }