示例#1
0
 private void btnMineParmPrint_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.StartReport("EngserMine");
     this.Cursor = Cursors.Arrow;
 }
示例#2
0
 private void printTeam_Click_1(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     mm.StartReport("ENGSERTEAM");
     this.Cursor = Cursors.Arrow;
 }
示例#3
0
        //private void grdOfficials_CellContentClick(object sender, DataGridViewCellEventArgs e)
        //{
        //    Cursor.Current = Cursors.WaitCursor;
        //    if (e.RowIndex < 0)
        //    {
        //    }
        //    else
        //    {
        //        txtOfficialsEmployeeNo.Text = grdOfficials["EMPLOYEE_NO", e.RowIndex].Value.ToString().Trim();
        //        txtOfficialsEmployeeName.Text = grdOfficials["EMPLOYEE_NAME", e.RowIndex].Value.ToString().Trim();
        //        txtOfficialsPPActual.Text = grdOfficials["PERSONALPERFORMANCE_ACTUAL", e.RowIndex].Value.ToString().Trim();
        //        txtOfficialsShiftsWorked.Text = grdOfficials["SHIFTS_WORKED", e.RowIndex].Value.ToString().Trim();
        //        txtOfficialsAwops.Text = grdOfficials["AWOP_SHIFTS", e.RowIndex].Value.ToString().Trim();
        //        txtOfficialsHODModel.Text = grdOfficials["HODModel", e.RowIndex].Value.ToString().Trim();
        //        cboOfficialsDepartment.Text = grdOfficials["Department", e.RowIndex].Value.ToString().Trim();
        //        cboOfficialsSubsection.Text = grdOfficials["Subsection", e.RowIndex].Value.ToString().Trim();

        //    }

        //    Cursor.Current = Cursors.Arrow;
        //}

        private void btnOfficialsPrint_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            MetaReportRuntime.App mm = new MetaReportRuntime.App();
            mm.Init(strMetaReportCode);
            mm.StartReport("ENGSEROfficials");
            this.Cursor = Cursors.Arrow;
        }
示例#4
0
 private void printAuth_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     //mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.StartReport("DEVTMTeamAuthorization");
     this.Cursor = Cursors.Arrow;
 }
示例#5
0
        private void btnAttendance_Click_1(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            evaluateLabour();
            if (Labour.Rows.Count == 0)
            {
                MessageBox.Show("No Labour records to print for the section: " + txtSelectedSection.Text.Trim(), "Information", MessageBoxButtons.OK);
            }
            else
            {
                DataTable temp = Labour.Copy();
                deleteAllCalcColumnsFromTempTable("BonusShifts", temp);
                TB.createAttendanceTable(Base.DBConnectionString, temp);

                MetaReportRuntime.App mm = new MetaReportRuntime.App();
                mm.Init(strMetaReportCode);
                mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";

                mm.StartReport("ENGSERTA");
            }
            this.Cursor = Cursors.Arrow;
        }
示例#6
0
 private void btnTramTeam_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     //mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.StartReport("Devtm4000otherTeams");
     this.Cursor = Cursors.Arrow;
 }
示例#7
0
        public void metareportAutoW3Parameter(string parameterSet1, string parameterSet2, string parameterSet3,
                                           string parm1, string parm2, string parm3, string filename,
                                           string reportName)
        {
            this.Cursor = Cursors.WaitCursor;
            MetaReportRuntime.App mm = new MetaReportRuntime.App();
            mm.Init(strMetaReportCode);
            mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
            int repNo = mm.get_OpenReport(reportName);
            mm.SetStringParameter(parameterSet1, parm1.ToString().Trim(), repNo);
            mm.SetStringParameter(parameterSet2, parm2.ToString().Trim(), repNo);
            mm.SetStringParameter(parameterSet3, parm3.ToString().Trim(), repNo);
            mm.StartReportWithParameters(repNo, true);
            //mm.PrintToFile(repNo, filename, MetaReportRuntime.MRFileFormat.ffPDF);
            mm.CloseReport(repNo);
            //System.Diagnostics.Process.Start(filename);

            this.Cursor = Cursors.Arrow;
        }
示例#8
0
 private void btnMetervs_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     mm.StartReport("MetersVSPayoutStope");
     this.Cursor = Cursors.Arrow;
 }
示例#9
0
 private void btnSurveySummary_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     mm.StartReport("SurveySumSTM");
     this.Cursor = Cursors.Arrow;
 }
示例#10
0
 private void btnGangTypeAuth_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.Init(strMetaReportCode);
     //mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.StartReport("STPTMGangtypeAuth");
     this.Cursor = Cursors.Arrow;
 }
示例#11
0
 private void btnCostSheetSpreadsheet_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.Init(strMetaReportCode);
     mm.StartReport("OFFSERCostsheetsSpreadsheet");
     this.Cursor = Cursors.Arrow;
 }
示例#12
0
 private void button4_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.Init(strMetaReportCode);
     mm.StartReport("OFFSER_MO_SUMMARY");
     this.Cursor = Cursors.Arrow;
 }
示例#13
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            evaluateLabour();

            if (Labour.Rows.Count == 0)
            {
                MessageBox.Show("No Officials records to print for the section: " + txtSelectedSection.Text.Trim(), "Information", MessageBoxButtons.OK);
            }
            else
            {
                DataTable temp = Labour.Copy();

                foreach (DataRow row in temp.Rows)
                {
                    if (temp.Columns.Contains("COST_ACTUAL"))
                    {
                        temp.Columns.Remove("COST_ACTUAL");
                    }
                    if (temp.Columns.Contains("COST_PLANNED"))
                    {
                        temp.Columns.Remove("COST_PLANNED");
                    }
                    if (temp.Columns.Contains("GOLD_ACTUAL"))
                    {
                        temp.Columns.Remove("GOLD_ACTUAL");
                    }
                    if (temp.Columns.Contains("GOLD_PLANNED"))
                    {
                        temp.Columns.Remove("GOLD_PLANNED");
                    }
                    if (temp.Columns.Contains("PRODUCTION_ACTUAL"))
                    {
                        temp.Columns.Remove("PRODUCTION_ACTUAL");
                    }
                    if (temp.Columns.Contains("PRODUCTION_PLANNED"))
                    {
                        temp.Columns.Remove("PRODUCTION_PLANNED");
                    }
                    if (temp.Columns.Contains("SAFETY_ACTUAL"))
                    {
                        temp.Columns.Remove("SAFETY_ACTUAL");
                    }
                    if (temp.Columns.Contains("DESIGNATION"))
                    {
                        temp.Columns.Remove("DESIGNATION");
                    }
                    if (temp.Columns.Contains("DESIGNATION_DESC"))
                    {
                        temp.Columns.Remove("DESIGNATION_DESC");
                    }
                    if (temp.Columns.Contains("MEASSECTION"))
                    {
                        temp.Columns.Remove("MEASSECTION");
                    }
                    if (temp.Columns.Contains("DRILLERIND"))
                    {

                    }
                    else
                    {
                        temp.Columns.Add("DRILLERIND");
                    }
                    if (temp.Columns.Contains("DRILLERSHIFTS"))
                    {

                    }
                    else
                    {
                        temp.Columns.Add("DRILLERSHIFTS");
                    }
                }

                deleteAllCalcColumnsFromTempTable("Officials", temp);

                TB.createAttendanceTable_withPeriodandBussUnit(Base.DBConnectionString, temp);

                MetaReportRuntime.App mm = new MetaReportRuntime.App();
                mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
                mm.Init(strMetaReportCode);
                mm.StartReport("STPOFFTA");
            }
            this.Cursor = Cursors.Arrow;
        }
示例#14
0
 private void btnParticipantsInputSheets_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     MetaReportRuntime.App mm = new MetaReportRuntime.App();
     mm.ProjectsPath = "c:\\icalc\\Harmony\\Phakisa\\" + strServerPath + "\\REPORTS\\";
     mm.Init(strMetaReportCode);
     mm.StartReport("OFFSERParticipantsCalenderInputs");
     this.Cursor = Cursors.Arrow;
 }