示例#1
0
        private void btnRunSubConReport_Click(object sender, EventArgs e)
        {
            SubItemDaily.CalcAll(DateTime.Today.AddDays(int.Parse(intMinDay.Value.ToString()) * -1));

            WIPReport_SubCon QCReport = new WIPReport_SubCon();
            QCReport.minDay = int.Parse(intMinDay.Value.ToString()) * -1;
            QCReport.RunReport(chkShowReport.Checked);

            using (UnitOfWork uow = new UnitOfWork(XpoDefault.DataLayer))
            {
                WIPReport_SubCon subConReport = new WIPReport_SubCon("WIPReportSubCon2.xls", string.Format(@"{0}WIP - SubCon2\WIP_SubCon2_{1}", SystemSetting.GetInstance(uow).WIPReportPath, DateTime.Today.ToString("yyyy_MM_dd")));
                subConReport.SubItemType = SubItem.SubItemType.Subcon;
                subConReport.minDay = int.Parse(intMinDay.Value.ToString()) * -1;
                subConReport.RunReport(chkShowReport.Checked);
            }
        }
示例#2
0
        private void RunQCReport()
        {
            Logger.For(this).Info("开始");

            SubItemDaily.CalcAll(DateTime.Today.AddDays(-5));

            WIPReport_SubCon QCReport = new WIPReport_SubCon();
            QCReport.minDay = -1;
            QCReport.RunReport(false);

            EmailReport(QCReport.SaveFilePath);
            QCReport = null;
            Logger.For(this).Info("结束");
        }
示例#3
0
        private void RunDeptJReport()
        {
            Logger.For(this).Info("开始");
            SubItemDaily.CalcAll(DateTime.Today.AddDays(-5));

            using (UnitOfWork uow = new UnitOfWork(XpoDefault.DataLayer))
            {
                WIPReport_SubCon subConReport = new WIPReport_SubCon("WIPReportSubCon2.xls", string.Format(@"{0}WIP - SubCon2\WIP_SubCon2_{1}.xls", SystemSetting.GetInstance(uow).WIPReportPath, DateTime.Today.ToString("yyyy_MM_dd")));
                subConReport.SubItemType = SubItem.SubItemType.Subcon;
                subConReport.minDay = -1;
                subConReport.RunReport(false);

                EmailReport (subConReport.SaveFilePath);
                subConReport = null;
            }
            Logger.For(this).Info("结束");
        }