示例#1
0
        private void General_Template2_Load(object sender, EventArgs e)
        {
            dateTimePicker1.Format       = DateTimePickerFormat.Custom;
            dateTimePicker1.CustomFormat = "dd-MMM-yyyy";

            dateTimePicker2.Format       = DateTimePickerFormat.Custom;
            dateTimePicker2.CustomFormat = "dd-MMM-yyyy";

            General_Template genTemplate = new General_Template();

            //General_Templat6 genTemp6 = new General_Templat6();
            dateTimePicker1.Text = General_Templat6.yearend + "" + (int.Parse(DateTime.Today.ToString("yyyy")) - 1);
            companytext.Text     = (General_Template.company);
            TINtext.Text         = (General_Template.tin);
            reviewDatetext.Text  = General_Template.reviewdate;
            Reftext.Text         = General_Template.Ref;
            DueDateText.Text     = dateTimePicker1.Value.AddMonths(6).ToString("dd MMMM, yyyy");

            // int mnths = (dateTimePicker1.Value.AddMonths(6));
            DateTime incrmdate  = dateTimePicker1.Value.AddMonths(6);
            DateTime incrmdate1 = dateTimePicker2.Value.AddDays(0);

            getLateRemarks();
            getRemarks();

            // testText.Text = computeMonth();
            LSPText.Text     = computeLsp();
            DueDateText.Text = dateTimePicker1.Value.AddMonths(6).ToString("dd MMMM, yyyy");
        }
示例#2
0
        private void GenTempButton_Click(object sender, EventArgs e)
        {
            companynamePNJ      = taxpayerText.Text;
            tinPNJ              = tinText.Text;
            addressPNJ          = BusaddText.Text + " " + Busadd2Text.Text + " " + BusaddstateText.Text;
            yearend             = YearEndcomboBox.Text;
            scheduleOfficer     = textBox15.Text;
            scheduleOfficerRank = comboBox4.Text;
            supervisor          = textBox16.Text;
            supervisorRank      = comboBox5.Text;
            General_Template gentemplate = new General_Template();

            gentemplate.Show();
        }