Ejemplo n.º 1
0
        private int GetQty(string TenantID, string LineId, string OrderNo)
        {
            int result = 0;

            try
            {
                minimes_hoursreportService reportService = new minimes_hoursreportService();
                List <minimes_hoursreport> reportList    = reportService.GetModelList(
                    ParamQuery.Instance()
                    .AndWhere("LineId", LineId)
                    .AndWhere("OrderNo", OrderNo)
                    .AndWhere("TenantID", TenantID)
                    .AndWhere("PlanDate", DateTime.Now.Date)
                    );
                result = reportList.Sum(v => v.Qty);
            }
            catch
            { }
            return(result);
        }