📄 dutydetail.h
字号:
//****** begin **************************//
//changed and noted by dongzhaoliang in 2006/5
//****** end **************************//
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
#include "DBBase.h"
#include "infClass.h"
namespace FAP
{
/// <summary>
/// Summary for DutyDetail
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public __gc class DutyDetail : public System::Windows::Forms::Form
{
public:
DutyDetail(void)
{
InitializeComponent();
}
DutyDetail(infClass *infTmp) //when initialization only get some information from initial class
{
InitializeComponent();
infDutyDetail = infTmp;
iLanguage=infDutyDetail->intLang;
dbDutyDetail = new DBBase();
}
DBBase *dbDutyDetail;
private: System::Windows::Forms::DataGrid * dataGrid1;
infClass *infDutyDetail;
private: System::Windows::Forms::ComboBox * ComboBoxTeam; //used for display team number
int iLanguage; //indicate language version
void InitProcess(int); //initialize the process comobox ,parameter is language version
void InitGrid(int);
void begin(void ); //according to the variable iLanguage the language version, it initialize some string which will be used in different language version
String __gc *arrayStringInputDataJustify[];
double dblCntCost(); //check whether the datagrid has been input correct data ,let peopleNumber*peopleRank to generate manCost
bool blnUpdDB(double,DateTime,String*,String* ); //parameter total man cost,time picker's date,team number,process code
private: System::Windows::Forms::DateTimePicker * dtpDetail;
private: System::Windows::Forms::TextBox * txtTotal; //txtTotal is the total cost of human
private: System::Windows::Forms::ComboBox * cboProcess;
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Button * cmdLog;
private: System::Windows::Forms::Button * cmdCancel;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::Resources::ResourceManager * resources = new System::Resources::ResourceManager(__typeof(FAP::DutyDetail));
this->label2 = new System::Windows::Forms::Label();
this->dtpDetail = new System::Windows::Forms::DateTimePicker();
this->cmdLog = new System::Windows::Forms::Button();
this->label1 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->label4 = new System::Windows::Forms::Label();
this->label5 = new System::Windows::Forms::Label();
this->txtTotal = new System::Windows::Forms::TextBox();
this->cmdCancel = new System::Windows::Forms::Button();
this->cboProcess = new System::Windows::Forms::ComboBox();
this->dataGrid1 = new System::Windows::Forms::DataGrid();
this->ComboBoxTeam = new System::Windows::Forms::ComboBox();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGrid1))->BeginInit();
this->SuspendLayout();
//
// label2
//
this->label2->AccessibleDescription = resources->GetString(S"label2.AccessibleDescription");
this->label2->AccessibleName = resources->GetString(S"label2.AccessibleName");
this->label2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label2.Anchor")));
this->label2->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.AutoSize")));
this->label2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label2.Dock")));
this->label2->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.Enabled")));
this->label2->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label2.Font")));
this->label2->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label2.Image")));
this->label2->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label2.ImageAlign")));
this->label2->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label2.ImageIndex")));
this->label2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label2.ImeMode")));
this->label2->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label2.Location")));
this->label2->Name = S"label2";
this->label2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label2.RightToLeft")));
this->label2->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label2.Size")));
this->label2->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label2.TabIndex")));
this->label2->Text = resources->GetString(S"label2.Text");
this->label2->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label2.TextAlign")));
this->label2->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label2.Visible")));
//
// dtpDetail
//
this->dtpDetail->AccessibleDescription = resources->GetString(S"dtpDetail.AccessibleDescription");
this->dtpDetail->AccessibleName = resources->GetString(S"dtpDetail.AccessibleName");
this->dtpDetail->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dtpDetail.Anchor")));
this->dtpDetail->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dtpDetail.BackgroundImage")));
this->dtpDetail->CalendarFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dtpDetail.CalendarFont")));
this->dtpDetail->CustomFormat = S"yyyy-MM-dd";
this->dtpDetail->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dtpDetail.Dock")));
this->dtpDetail->DropDownAlign = (*__try_cast<__box System::Windows::Forms::LeftRightAlignment * >(resources->GetObject(S"dtpDetail.DropDownAlign")));
this->dtpDetail->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dtpDetail.Enabled")));
this->dtpDetail->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dtpDetail.Font")));
this->dtpDetail->Format = System::Windows::Forms::DateTimePickerFormat::Custom;
this->dtpDetail->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dtpDetail.ImeMode")));
this->dtpDetail->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dtpDetail.Location")));
this->dtpDetail->Name = S"dtpDetail";
this->dtpDetail->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dtpDetail.RightToLeft")));
this->dtpDetail->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dtpDetail.Size")));
this->dtpDetail->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dtpDetail.TabIndex")));
this->dtpDetail->Value = System::DateTime(2006, 3, 1, 0, 0, 0, 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -