Exemplo n.º 1
0
        private void F_Employee_Load_1(object sender, EventArgs e)
        {
            dataGridView_Employee.ColumnCount = 8;

            dataGridView_Employee.Columns[0].HeaderText = "社員ID";
            dataGridView_Employee.Columns[1].HeaderText = "社員名";
            dataGridView_Employee.Columns[2].HeaderText = "営業所ID";
            dataGridView_Employee.Columns[3].HeaderText = "役職ID";
            dataGridView_Employee.Columns[4].HeaderText = "入社年月日";
            dataGridView_Employee.Columns[5].HeaderText = "電話番号";
            dataGridView_Employee.Columns[6].HeaderText = "社員管理フラグ";
            dataGridView_Employee.Columns[7].HeaderText = "非表示理由";
            HIDEFlag = 0;

            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            loginauthor();
        }
Exemplo n.º 2
0
        private void F_Warehousing_Load(object sender, EventArgs e)
        {
            HIDEFlag = 0;

            F_login f_login = new F_login();

            transfer_int = f_login.transfer_int;

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }


            dataGridView_Warehousing.ColumnCount = 6;

            dataGridView_Warehousing.Columns[0].HeaderText = "入庫ID ";
            dataGridView_Warehousing.Columns[1].HeaderText = "発注ID ";
            dataGridView_Warehousing.Columns[2].HeaderText = "入庫確認社員ID";
            dataGridView_Warehousing.Columns[3].HeaderText = "入庫年月日";
            dataGridView_Warehousing.Columns[4].HeaderText = "非表示理由";
            dataGridView_Warehousing.Columns[5].HeaderText = "備考 ";
        }
Exemplo n.º 3
0
        private void F_Sale_Load(object sender, EventArgs e)
        {
            HIDEFlag = 0;
            dataGridView_Sale.ColumnCount = 8;

            dataGridView_Sale.Columns[0].HeaderText = "売上ID ";
            dataGridView_Sale.Columns[1].HeaderText = "顧客ID ";
            dataGridView_Sale.Columns[2].HeaderText = "営業所ID ";
            dataGridView_Sale.Columns[3].HeaderText = "受注社員ID";
            dataGridView_Sale.Columns[4].HeaderText = "受注ID";
            dataGridView_Sale.Columns[5].HeaderText = "売上年月日";
            dataGridView_Sale.Columns[6].HeaderText = "備考";
            dataGridView_Sale.Columns[7].HeaderText = "非表示理由";

            F_login f_login = new F_login();

            transfer_int = f_login.transfer_int;

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
        }
Exemplo n.º 4
0
        private void F_Product_Load(object sender, EventArgs e)
        {
            dataGridView_Product.ColumnCount = 13;

            dataGridView_Product.Columns[0].HeaderText  = "商品ID ";
            dataGridView_Product.Columns[1].HeaderText  = "メーカID ";
            dataGridView_Product.Columns[2].HeaderText  = "商品名 ";
            dataGridView_Product.Columns[3].HeaderText  = "価格";
            dataGridView_Product.Columns[4].HeaderText  = "JANコード";
            dataGridView_Product.Columns[5].HeaderText  = "安全在庫数 ";
            dataGridView_Product.Columns[6].HeaderText  = "小分類ID";
            dataGridView_Product.Columns[7].HeaderText  = "型番";
            dataGridView_Product.Columns[8].HeaderText  = "色";
            dataGridView_Product.Columns[9].HeaderText  = "発売日";
            dataGridView_Product.Columns[10].HeaderText = "非表示フラグ";
            dataGridView_Product.Columns[11].HeaderText = "非表示理由";
            dataGridView_Product.Columns[12].HeaderText = "備考";


            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            loginauthor();
        }
Exemplo n.º 5
0
        ///// 画面遷移処理 /////

        private void ログイン_Click_1(object sender, EventArgs e)
        {
            F_home  f_home     = new F_home();
            F_login form_login = new F_login();

            form_login.ShowDialog();
        }
Exemplo n.º 6
0
        private void F_Client_Load_1(object sender, EventArgs e)
        {
            dataGridView_Client.ColumnCount = 9;

            dataGridView_Client.Columns[0].HeaderText = "顧客ID ";
            dataGridView_Client.Columns[1].HeaderText = "営業所ID ";
            dataGridView_Client.Columns[2].HeaderText = "顧客名 ";
            dataGridView_Client.Columns[3].HeaderText = "住所";
            dataGridView_Client.Columns[4].HeaderText = "電話番号";
            dataGridView_Client.Columns[5].HeaderText = "郵便番号 ";
            dataGridView_Client.Columns[6].HeaderText = "FAX";
            dataGridView_Client.Columns[7].HeaderText = "顧客管理フラグ";
            dataGridView_Client.Columns[8].HeaderText = "非表示理由";


            F_login f_login = new F_login();

            transfer_int = f_login.transfer_int;

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            HIDEFlag = 0;
        }
Exemplo n.º 7
0
        private void F_Shipment_Load(object sender, EventArgs e)
        {
            HIDEFlag = 0;
            dataGridView_Shipment.ColumnCount = 12;

            dataGridView_Shipment.Columns[0].HeaderText  = "出荷ID ";
            dataGridView_Shipment.Columns[1].HeaderText  = "顧客ID ";
            dataGridView_Shipment.Columns[2].HeaderText  = "社員ID ";
            dataGridView_Shipment.Columns[3].HeaderText  = "営業所ID";
            dataGridView_Shipment.Columns[4].HeaderText  = "受注ID";
            dataGridView_Shipment.Columns[5].HeaderText  = "出荷状態フラグ";
            dataGridView_Shipment.Columns[6].HeaderText  = "出荷完了年月日 ";
            dataGridView_Shipment.Columns[7].HeaderText  = "出荷管理フラグ";
            dataGridView_Shipment.Columns[8].HeaderText  = "非表示理由";
            dataGridView_Shipment.Columns[9].HeaderText  = "出荷詳細ID";
            dataGridView_Shipment.Columns[10].HeaderText = "商品ID";
            dataGridView_Shipment.Columns[11].HeaderText = "数量";

            dataGridView_Shipment.AutoSizeColumnsMode        = DataGridViewAutoSizeColumnsMode.ColumnHeader;
            dataGridView_Shipment_Detail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader;

            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            loginauthor();
        }
Exemplo n.º 8
0
        ///// 画面遷移処理 /////

        private void btn_login_Click(object sender, EventArgs e)
        {
            F_login form_login = new F_login();

            form_login.transfer_int = transfer_int;
            form_login.ShowDialog();
        }
Exemplo n.º 9
0
        private void F_home_Load(object sender, EventArgs e)
        {
            F_home  f_home  = new F_home();
            F_login f_login = new F_login();

            f_home.Visible = false;
            f_login.ShowDialog();

            //権限割り当て
            transfer_int            = f_login.transfer_int;
            f_order.transfer_int    = transfer_int;
            f_chumon.transfer_int   = transfer_int;
            f_syukko.transfer_int   = transfer_int;
            f_arrival.transfer_int  = transfer_int;
            f_shipment.transfer_int = transfer_int;
            f_product.transfer_int  = transfer_int;
            f_employee.transfer_int = transfer_int;
            loginauthor();
        }
Exemplo n.º 10
0
        private void F_Stock_Load(object sender, EventArgs e)
        {
            HIDEFlag = 0;

            F_login f_login = new F_login();

            transfer_int = f_login.transfer_int;

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }

            dataGridView_Stock.ColumnCount = 3;

            dataGridView_Stock.Columns[0].HeaderText = "在庫ID ";
            dataGridView_Stock.Columns[1].HeaderText = "商品ID ";
            dataGridView_Stock.Columns[2].HeaderText = "在庫数 ";
        }
Exemplo n.º 11
0
        private void F_Chumon_Load(object sender, EventArgs e)
        {
            dataGridView_Chumon.ColumnCount = 8;

            //btn_regist.Enabled = false; //受注処理の時点で注文テーブルに共通項目は登録されているので、この画面では更新処理でデータを追加するべき。
            btn_search.Enabled = false; //検索処理はこの画面には必要ない
            StockNum           = 0;

            dataGridView_Chumon.Columns[0].HeaderText = "注文ID ";
            dataGridView_Chumon.Columns[1].HeaderText = "営業所ID ";
            dataGridView_Chumon.Columns[2].HeaderText = "社員ID ";
            dataGridView_Chumon.Columns[3].HeaderText = "顧客ID";
            dataGridView_Chumon.Columns[4].HeaderText = "受注ID";
            dataGridView_Chumon.Columns[5].HeaderText = "注文年月日 ";
            dataGridView_Chumon.Columns[6].HeaderText = "注文管理フラグ";
            dataGridView_Chumon.Columns[7].HeaderText = "非表示理由";

            dataGridView_Chumon_Detail.ColumnCount = 4;

            dataGridView_Chumon_Detail.Columns[0].HeaderText = "注文詳細ID";
            dataGridView_Chumon_Detail.Columns[1].HeaderText = "注文ID";
            dataGridView_Chumon_Detail.Columns[2].HeaderText = "商品ID";
            dataGridView_Chumon_Detail.Columns[3].HeaderText = "数量";

            dataGridView_Chumon.AutoSizeColumnsMode        = DataGridViewAutoSizeColumnsMode.ColumnHeader;
            dataGridView_Chumon_Detail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader;

            HIDEFlag = 0;
            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            loginauthor();
        }
Exemplo n.º 12
0
        private void F_Arrival_Load(object sender, EventArgs e)
        {
            dataGridView_Arrival.ColumnCount = 9;

            dataGridView_Arrival.Columns[0].HeaderText = "入荷ID ";
            dataGridView_Arrival.Columns[1].HeaderText = "営業所ID ";
            dataGridView_Arrival.Columns[2].HeaderText = "社員ID ";
            dataGridView_Arrival.Columns[3].HeaderText = "顧客ID";
            dataGridView_Arrival.Columns[4].HeaderText = "受注ID";
            dataGridView_Arrival.Columns[5].HeaderText = "入荷年月日";
            dataGridView_Arrival.Columns[6].HeaderText = "非表示理由";
            dataGridView_Arrival.Columns[7].HeaderText = "備考";
            dataGridView_Arrival.Columns[8].HeaderText = "入荷失敗フラグ";

            dataGridView_Arrival_Detail.ColumnCount = 4;

            dataGridView_Arrival_Detail.Columns[0].HeaderText = "入荷詳細ID ";
            dataGridView_Arrival_Detail.Columns[1].HeaderText = "入荷ID ";
            dataGridView_Arrival_Detail.Columns[2].HeaderText = "商品ID ";
            dataGridView_Arrival_Detail.Columns[3].HeaderText = "数量ID";

            dataGridView_Arrival.AutoSizeColumnsMode        = DataGridViewAutoSizeColumnsMode.ColumnHeader;
            dataGridView_Arrival_Detail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader;

            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }

            HIDEFlag = 0;
            loginauthor();
        }
Exemplo n.º 13
0
        private void F_Hattyu_Load(object sender, EventArgs e)
        {
            btn_hattyu.Enabled = false;
            dataGridView_Hattyu.ColumnCount = 11;

            dataGridView_Hattyu.Columns[0].HeaderText = "発注ID";
            dataGridView_Hattyu.Columns[1].HeaderText = "メーカID";
            dataGridView_Hattyu.Columns[2].HeaderText = "発注社員ID";
            dataGridView_Hattyu.Columns[3].HeaderText = "発注年月日";
            dataGridView_Hattyu.Columns[4].HeaderText = "備考";
            dataGridView_Hattyu.Columns[5].HeaderText = "非表示理由";
            F_login f_login = new F_login();

            transfer_int = f_login.transfer_int;

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            HIDEFlag = 0;
        }
Exemplo n.º 14
0
        private void F_Syukko_Load(object sender, EventArgs e)
        {
            HIDEFlag           = 0;
            btn_regist.Enabled = false;
            dataGridView_Syukko.ColumnCount = 8;

            dataGridView_Syukko.Columns[0].HeaderText = "出庫ID";
            dataGridView_Syukko.Columns[1].HeaderText = "社員ID";
            dataGridView_Syukko.Columns[2].HeaderText = "顧客ID";
            dataGridView_Syukko.Columns[3].HeaderText = "営業所ID";
            dataGridView_Syukko.Columns[4].HeaderText = "受注ID";
            dataGridView_Syukko.Columns[5].HeaderText = "出庫年月日";
            dataGridView_Syukko.Columns[6].HeaderText = "非表示理由";
            dataGridView_Syukko.Columns[7].HeaderText = "備考";

            dataGridView_Syukko_Detail.ColumnCount = 4;

            dataGridView_Syukko_Detail.Columns[0].HeaderText = "出庫詳細ID";
            dataGridView_Syukko_Detail.Columns[1].HeaderText = "出庫ID";
            dataGridView_Syukko_Detail.Columns[2].HeaderText = "商品ID";
            dataGridView_Syukko_Detail.Columns[3].HeaderText = "数量";

            dataGridView_Syukko.AutoSizeColumnsMode        = DataGridViewAutoSizeColumnsMode.ColumnHeader;
            dataGridView_Syukko_Detail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader;

            F_login f_login = new F_login();

            btn_delete.Enabled = false;

            if (transfer_int == 1 ||
                transfer_int == 5)
            {
                btn_delete.Enabled = true;
            }
            loginauthor();
        }
Exemplo n.º 15
0
        private void ログイン管理toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            F_login form_login = new F_login();

            form_login.ShowDialog();
        }