Example #1
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

        //----------------------------------------------------------------------------//
        //     Method                                                                 //
        //----------------------------------------------------------------------------//
        private void FormRegular_Load(object sender, EventArgs e)
        {
            UiHandling uih = new UiHandling(dataGridViewL);

            uih.DgvReadyNoRHeader();
            uih.NoSortable();

            uih = new UiHandling(dataGridViewR);
            uih.DgvReadyNoRHeader();
            uih.NoSortable();

            uih = new UiHandling(dataGridViewT);
            uih.DgvReadyNoRHeader();
            uih.NoSortable();

            labelPublisher.Text = ted.OfficeName + ted.DepartName; // 部署名

            create_cbOffice();                                     // 事業所comboBox
            comboBoxOffice.Text = ted.OfficeName;
            create_cbWork();                                       // 部門ComboBox
            comboBoxWork.Text = ted.DepartName;

            ListFormDataOp lo = new ListFormDataOp();

            psd = lo.SelectPartnersScData();

            create_dtPicker();

            edit_Labels();

            initialViewSetting(0);

            nowMonth();
        }
Example #2
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

        //----------------------------------------------------------------------------//
        //     Method                                                                 //
        //----------------------------------------------------------------------------//
        private void FormOsPayment_Load(object sender, EventArgs e)
        {
            create_cbOffice();
            comboBoxOffice.Text = hp.OfficeCode;                                                                 // 初期値
            create_cbDepart();
            comboBoxDepart.Text = hp.Department;                                                                 // 初期値
            this.clsArray       = new DateTime[] { hp.CloseHDate, hp.CloseKDate, hp.CloseSDate, hp.CloseTDate }; // 現在の締日リスト

            dataGridView1.Rows.Add(iniRCnt);
            UiHandling ui = new UiHandling(dataGridView1);

            ui.DgvReadyNoRHeader();

            readyDateTimePicker();
            dateTimePickerEx1.Value = clsArray[Conv.oList.IndexOf(hp.OfficeCode)].AddMonths(1);         // 初期表示開始月(締月の翌月)
            preReportDate           = dateTimePickerEx1.Value.EndOfMonth();

            labelACheckDate.Text = "";
            labelDCheckDate.Text = "";
            labelPCheckDate.Text = "";
            labelMsg.Text        = "";

            readyCheckBox();
            buttonEnabled();
            buttonCost.Enabled = false;

            // 取引先マスタより外注先一覧作成
            Conv.OfficeAndDepartZ(comboBoxOffice, comboBoxDepart);
            ListFormDataOp lo = new ListFormDataOp();

            psd = lo.SelectPartnersScData();
            tcd = lo.SelectTaskCodeNameData(Conv.OfficeCode);
            cmd = lo.SelectCostDataInitialF(Conv.OfficeCode);

            selectPaymentData(dataGridView1, dateTimePickerEx1.Value.EndOfMonth(), Conv.OfficeCode, Conv.DepartCode);
        }