Exemplo n.º 1
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

        //----------------------------------------------------------------------------//
        //     Method                                                                 //
        //----------------------------------------------------------------------------//
        private void FormInvoice_Load(object sender, EventArgs e)
        {
            this.defaultCellStyle = new DataGridViewCellStyle();
            UiHandling uih = new UiHandling(dataGridView1);

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

            DateTime dtNow = DateTime.Now;

            iniRCnt = Convert.ToInt32((dtNow.EndOfMonth()).Day) - 1;
            dataGridView1.Rows.Add(iniRCnt);

            edit_Labels();
            edit_TextBox();
            create_dtPicker();

            // 作業項目マスタの一覧作成
            EstPlanOp ep = new EstPlanOp();

            wid = ep.StoreWorkItemsData(ted.MemberCode);

            initialProcessing(0);

            nowMonth();
        }
Exemplo n.º 2
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

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

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

            // 現在の締日一覧
            //this.clsArray = new DateTime[] { hp.CloseHDate, hp.CloseKDate, hp.CloseSDate, hp.CloseTDate };

            create_cbOffice();
            comboBoxOffice.SelectedIndex = Conv.oList.IndexOf(hp.OfficeCode); // 初期値
            create_cbDepart();
            comboBoxDepart.Text = hp.Department;                              // 初期値
            labelMessage.Text   = "";
            labelItemCode.Text  = "";

            // 事業所コードに応じた業務情報取得表示
            //dispTaskCodeNameList(hp.OfficeCode);
            //dispTaskCodeNameList(hp.OfficeCode,hp.Department);
            // 事業所コードに応じた原価情報取得表示
            //dispCostList(hp.OfficeCode);
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
0
        //---------------------------------------------------------------------
        //      Property
        //---------------------------------------------------------------------
        //---------------------------------------------------------------------
        //      Method
        //---------------------------------------------------------------------
        /// <summary>
        /// フォームロード時
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FormMCostMentL_Load(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;   // マウスカーソルを砂時計(Wait)

            UiHandling uih = new UiHandling(this.dataGridViewList);

            uih.DgvReadyNoRHeader();
            // 並び替えができないようにする
            uih.NoSortable();

            // 部署コンボボックス設定
            CreateCbOffice();

            // 原価マスタ表示
            CreateDataGridView();
            CostKeyControl(0);

            Cursor.Current = Cursors.Default;  // マウスカーソルを戻す
        }
Exemplo n.º 5
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

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

            uih.DgvReadyNoRHeader();
            uih.NoSortable();
            dataGridView1.Rows.Add(iniRCnt);

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

            create_dtPicker();

            edit_Labels();

            initialViewSetting(0);

            nowMonth();

            // 指定月の実績値を外注作業実績データ(D_OsWkReport)から実績値を得る
        }
Exemplo n.º 6
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

        //----------------------------------------------------------------------------//
        //     Method                                                                 //
        //----------------------------------------------------------------------------//
        private void FormOutsource_Load(object sender, EventArgs e)
        {
            this.defaultCellStyle = new DataGridViewCellStyle();

            UiHandling uih = new UiHandling(dataGridView1);

            uih.DgvReadyNoRHeader();
            uih.NoSortable();
            dataGridView1.Rows.Add(iniRCnt);
            buttonNumbering(dataGridView1);

            create_cbOffice();                  // 事業所comboBox
            create_cbWork();                    // 部門ComboBox
            create_cbPartner();                 // 業者名comboBox
            labelTask.Text = ted.TaskName;      // 業務名Label
            create_lblTerm();                   // 工期
            labelTaskCode.Text = ted.TaskCode;  // 業務番号
            create_cbPayRoule();                // 支払基準comboBox
            edit_tbDeliveryPoint();             // 納品場所初期値

            initialSetbuttonFromPlan();
            initialViewSetting(0);
        }
Exemplo n.º 7
0
        //----------------------------------------------------------------------------//
        //     Property                                                               //
        //----------------------------------------------------------------------------//

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

            uih.DgvReadyNoRHeader();
            //並び替えができないようにする
            uih.NoSortable();

            uih.DgvColumnsWidth(85);
            uih.DgvColumnsWidth(0, 90);

            dataGridView1.Rows.Add(iniRCnt);
            uih.DgvRowsHeight(26);
            uih.DgvRowsReadOnly(readOnlyRows, Color.PaleGreen);
            uih.DgvRowsReadOnly(readOnlyRowsW, Color.White);
            uih.DgvColumnsReadOnly(readOnlyCells, Color.PaleGreen);

            create_cbOffice();
            create_cbDepart();
            create_cbYM();
            setColumnLimitter();

            setViewData(dataGridView1);
        }