[1] 質問文
[1.1] 自分が今行いたい事は何か
・手書きで行われていた在庫管理のデータ化
・保管費用の可視化
[1.2] どのように取り組んだか(プログラムコードがある場合記載)
#pragma once
namespace My02 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Form1 の概要
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: ここにコンストラクター コードを追加します
//
}
protected:
/// <summary>
/// 使用中のリソースをすべてクリーンアップします。
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Label^ labelLot;
protected:
private: System::Windows::Forms::TextBox^ LotNo;
private: System::Windows::Forms::Button^ Send;
private: System::Windows::Forms::TextBox^ textBox;
private:
/// <summary>
/// 必要なデザイナー変数です。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// デザイナー サポートに必要なメソッドです。このメソッドの内容を
/// コード エディターで変更しないでください。
/// </summary>
void InitializeComponent(void)
{
this->labelLot = (gcnew System::Windows::Forms::Label());
this->LotNo = (gcnew System::Windows::Forms::TextBox());
this->Send = (gcnew System::Windows::Forms::Button());
this->textBox = (gcnew System::Windows::Forms::TextBox());
this->SuspendLayout();
//
// labelLot
//
this->labelLot->AutoSize = true;
this->labelLot->Location = System::Drawing::Point(12, 13);
this->labelLot->Name = L"labelLot";
this->labelLot->Size = System::Drawing::Size(37, 12);
this->labelLot->TabIndex = 0;
this->labelLot->Text = L"LotNo.";
//
// LotNo
//
this->LotNo->Location = System::Drawing::Point(69, 10);
this->LotNo->Name = L"LotNo";
this->LotNo->Size = System::Drawing::Size(100, 19);
this->LotNo->TabIndex = 1;
//
// Send
//
this->Send->Location = System::Drawing::Point(197, 8);
this->Send->Name = L"Send";
this->Send->Size = System::Drawing::Size(75, 23);
this->Send->TabIndex = 2;
this->Send->Text = L"送信";
this->Send->UseVisualStyleBackColor = true;
this->Send->Click += gcnew System::EventHandler(this, &Form1::Send_Click);
//
// textBox
//
this->textBox->Location = System::Drawing::Point(18, 37);
this->textBox->Multiline = true;
this->textBox->Name = L"textBox";
this->textBox->Size = System::Drawing::Size(254, 213);
this->textBox->TabIndex = 3;
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(284, 262);
this->Controls->Add(this->textBox);
this->Controls->Add(this->Send);
this->Controls->Add(this->LotNo);
this->Controls->Add(this->labelLot);
this->Name = L"Form1";
this->Text = L"Form1";
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void Send_Click(System::Object^ sender, System::EventArgs^ e) {
int a;
a=double::Parse(LotNo->Text);
//
// 1-1. ロットの入力フォームを表示し、検索。
// 2-1. ロットが無い場合
// データの入力フォームを表示し、データファイルに追加。
// 2-2. ロットが有った場合
// ロットNo.、入庫日、入庫数、在庫数、保管日数、保管費用を表示。
// 3-1. 在庫に変更が有った場合
// データファイルを変更する。
//
}
};
}
[1.4] 今何がわからないのか、知りたいのか
・コメントで書いたような処理をし、textBoxに表示したいのですが何をすれば良いのか分かりません。
・保管費用の計算方法が期毎に加算。
期は1日-10日,11日-20日,21日-月末日の月に3期な為どのようにしたら良いのか全く分かりません。
ex.7月9日に入庫し7月12日出庫した場合9-10,11-12の二期となり、期毎の費用×2となります。
[2] 環境
[2.1] OS : Windows7
[2.2] コンパイラ名 : Visual C++ 2010 Express
[3] その他
・どの程度C言語を理解しているか
全くできていません。
・ライブラリを使っている場合は何を使っているか
使用していません。
以上
ご教授お願いいたします