Esempio n. 1
0
        /// <summary>
        /// Print Reoort
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void printButton_Click(object sender, EventArgs e)
        {
            StiReport mainreport = new StiReport();

            mainreport.RegBusinessObject("traffic", result);
            mainreport.Load(Application.StartupPath + "\\Reports\\traffic.mrt");
            mainreport.Compile();
            mainreport["myDate"] = ExtensionsDateTime.toPersianDate(DateTime.Now);
            mainreport.Render();
            mainreport.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// Report Customer Menu Item
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReportCustomerMenuItem_Click(object sender, EventArgs e)
        {
            Common.BLL.Logic.GasStation.Owner lOwner = new Common.BLL.Logic.GasStation.Owner(Common.Enum.EDatabase.GasStation);
            CommandResult opResult   = lOwner.loadReportOwner();
            DataTable     result     = opResult.model as DataTable;
            StiReport     mainreport = new StiReport();

            mainreport.RegBusinessObject("owner", result);
            mainreport.Load(Application.StartupPath + "\\Reports\\owner.mrt");
            mainreport.Compile();
            mainreport["myDate"] = ExtensionsDateTime.toPersianDate(DateTime.Now);
            mainreport.Render();
            mainreport.Show();
        }
Esempio n. 3
0
 /// <summary>
 /// Prepare
 /// </summary>
 private void prepare()
 {
     dateStartMaskedTextBox.Text   =
         dateEndMaskedTextBox.Text = ExtensionsDateTime.toPersianDate(DateTime.Now);
     typeComboBox.SelectedIndex    = 0;
 }
Esempio n. 4
0
        /// <summary>
        /// Prepare
        /// </summary>
        private void prepare()
        {
            __Program.hasLogin = 0;                             // Default exit menu (Logoff)

            model = new Common.BLL.Entity.GasStation.System__Data()
            {
                name = "DB-Version"
            };
            Common.BLL.Logic.GasStation.System__Data lSystemData = new Common.BLL.Logic.GasStation.System__Data(Common.Enum.EDatabase.GasStation);
            CommandResult opResult = lSystemData.read(model, "name");

            if (opResult.status == BaseDAL.Base.EnumCommandStatus.success)
            {
                versionToolStripStatusLabel.Text = model.value;
            }

            // Get Version
            string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            versionToolStripStatusLabel.Text = version;
            dateToolStripStatusLabel.Text    = ExtensionsDateTime.getWeekDay(DateTime.Now) + "  " + ExtensionsDateTime.toPersianDate(DateTime.Now);
        }