📄 productresultlist.h
字号:
this->label5->AccessibleName = resources->GetString(S"label5.AccessibleName");
this->label5->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label5.Anchor")));
this->label5->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label5.AutoSize")));
this->label5->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label5.Dock")));
this->label5->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label5.Enabled")));
this->label5->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label5.Font")));
this->label5->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label5.Image")));
this->label5->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label5.ImageAlign")));
this->label5->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label5.ImageIndex")));
this->label5->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label5.ImeMode")));
this->label5->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label5.Location")));
this->label5->Name = S"label5";
this->label5->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label5.RightToLeft")));
this->label5->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label5.Size")));
this->label5->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label5.TabIndex")));
this->label5->Text = resources->GetString(S"label5.Text");
this->label5->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label5.TextAlign")));
this->label5->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label5.Visible")));
//
// comboBox2
//
this->comboBox2->AccessibleDescription = resources->GetString(S"comboBox2.AccessibleDescription");
this->comboBox2->AccessibleName = resources->GetString(S"comboBox2.AccessibleName");
this->comboBox2->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"comboBox2.Anchor")));
this->comboBox2->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"comboBox2.BackgroundImage")));
this->comboBox2->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"comboBox2.Dock")));
this->comboBox2->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboBox2.Enabled")));
this->comboBox2->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"comboBox2.Font")));
this->comboBox2->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"comboBox2.ImeMode")));
this->comboBox2->IntegralHeight = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboBox2.IntegralHeight")));
this->comboBox2->ItemHeight = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboBox2.ItemHeight")));
System::Object* __mcTemp__3[] = new System::Object*[3];
__mcTemp__3[0] = resources->GetString(S"comboBox2.Items");
__mcTemp__3[1] = resources->GetString(S"comboBox2.Items1");
__mcTemp__3[2] = resources->GetString(S"comboBox2.Items2");
this->comboBox2->Items->AddRange(__mcTemp__3);
this->comboBox2->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"comboBox2.Location")));
this->comboBox2->MaxDropDownItems = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboBox2.MaxDropDownItems")));
this->comboBox2->MaxLength = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboBox2.MaxLength")));
this->comboBox2->Name = S"comboBox2";
this->comboBox2->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"comboBox2.RightToLeft")));
this->comboBox2->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"comboBox2.Size")));
this->comboBox2->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"comboBox2.TabIndex")));
this->comboBox2->Text = resources->GetString(S"comboBox2.Text");
this->comboBox2->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"comboBox2.Visible")));
this->comboBox2->SelectedIndexChanged += new System::EventHandler(this, comboBox2_SelectedIndexChanged);
//
// label6
//
this->label6->AccessibleDescription = resources->GetString(S"label6.AccessibleDescription");
this->label6->AccessibleName = resources->GetString(S"label6.AccessibleName");
this->label6->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"label6.Anchor")));
this->label6->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label6.AutoSize")));
this->label6->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"label6.Dock")));
this->label6->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label6.Enabled")));
this->label6->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"label6.Font")));
this->label6->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"label6.Image")));
this->label6->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label6.ImageAlign")));
this->label6->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label6.ImageIndex")));
this->label6->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"label6.ImeMode")));
this->label6->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"label6.Location")));
this->label6->Name = S"label6";
this->label6->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"label6.RightToLeft")));
this->label6->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"label6.Size")));
this->label6->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"label6.TabIndex")));
this->label6->Text = resources->GetString(S"label6.Text");
this->label6->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"label6.TextAlign")));
this->label6->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"label6.Visible")));
//
// ProductResultList
//
this->AccessibleDescription = resources->GetString(S"$this.AccessibleDescription");
this->AccessibleName = resources->GetString(S"$this.AccessibleName");
this->AutoScaleBaseSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScaleBaseSize")));
this->AutoScroll = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"$this.AutoScroll")));
this->AutoScrollMargin = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScrollMargin")));
this->AutoScrollMinSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.AutoScrollMinSize")));
this->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"$this.BackgroundImage")));
this->ClientSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.ClientSize")));
this->Controls->Add(this->label6);
this->Controls->Add(this->comboBox2);
this->Controls->Add(this->label5);
this->Controls->Add(this->label4);
this->Controls->Add(this->comboBox1);
this->Controls->Add(this->dataGridMainForDay);
this->Controls->Add(this->dateTimePickerTo);
this->Controls->Add(this->dateTimePickerFrom);
this->Controls->Add(this->label3);
this->Controls->Add(this->btnSearch);
this->Controls->Add(this->comboBoxProcessNum);
this->Controls->Add(this->label1);
this->Controls->Add(this->label2);
this->Controls->Add(this->comboBoxUnit);
this->Controls->Add(this->button2);
this->Controls->Add(this->dataGridMainForMonth);
this->Controls->Add(this->lbl_Title);
this->Controls->Add(this->button3);
this->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"$this.Enabled")));
this->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"$this.Font")));
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
this->Icon = (__try_cast<System::Drawing::Icon * >(resources->GetObject(S"$this.Icon")));
this->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"$this.ImeMode")));
this->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"$this.Location")));
this->MaximizeBox = false;
this->MaximumSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.MaximumSize")));
this->MinimumSize = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"$this.MinimumSize")));
this->Name = S"ProductResultList";
this->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"$this.RightToLeft")));
this->StartPosition = (*__try_cast<__box System::Windows::Forms::FormStartPosition * >(resources->GetObject(S"$this.StartPosition")));
this->Text = resources->GetString(S"$this.Text");
this->Load += new System::EventHandler(this, ProductResultList_Load);
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridMainForMonth))->EndInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridMainForDay))->EndInit();
this->ResumeLayout(false);
}
private: System::Void button3_Click(System::Object * sender, System::EventArgs * e)
{
this->Close();
}
private: System::Void ProductResultList_Load(System::Object * sender, System::EventArgs * e)
{
String * comboxText[]={S"全部 ",S"全て ",S"All "};
// comboBox1->SelectedIndex=3;
String *vstrDate1;
vstrDate1=String::Format("{0:yyyy-MM-01}",__box(DateTime::Today));
dateTimePickerFrom->Text=vstrDate1;
//dtpTo->Value = (DateTime::Today);
//GridEvent
dataGridMainForDay->add_Paint(new System::Windows::Forms::PaintEventHandler(this, dataGridMainForDay_Paint));
dataGridMainForMonth->add_Paint(new System::Windows::Forms::PaintEventHandler(this, dataGridMainForMonth_Paint));
// dataGridMinor->add_Paint(new System::Windows::Forms::PaintEventHandler(this, dataGridMinor_Paint));
oDB = new DBBase();
oDB->blnCnnOpen();
//Init Display
InitProductResultList();
comboBox1->Text=comboxText[iLanguage];
comboBox2->Text=comboxText[iLanguage];
}
private: System::Void dataGridMainForDay_Paint(System::Object * sender, System::Windows::Forms::PaintEventArgs * e)
{
BindingManagerBase* oBM;
if(dataGridMainForDay->DataSource != NULL){
oBM = dataGridMainForDay->BindingContext->get_Item(oDataTableMain);
if(oBM->Count > 0){//oBM->Count gets the number of rows managed by the BindingManagerBase
dataGridMainForDay->Select(dataGridMainForDay->CurrentCell.RowNumber);
//dataGridMainForDay->set_ForeColor(System::Drawing::Color::Black);
}
}
}
private: System::Void dataGridMainForMonth_Paint(System::Object * sender, System::Windows::Forms::PaintEventArgs * e)
{
BindingManagerBase* oBM;
if(dataGridMainForMonth->DataSource != NULL){
oBM = dataGridMainForMonth->BindingContext->get_Item(oDataTableMain);
if(oBM->Count > 0){//oBM->Count gets the number of rows managed by the BindingManagerBase
dataGridMainForMonth->Select(dataGridMainForMonth->CurrentCell.RowNumber);
}
}
}
//private: System::Void dataGridMinor_Paint(System::Object * sender, System::Windows::Forms::PaintEventArgs * e)
// {
// BindingManagerBase* oBM;
//
// if(dataGridMinor->DataSource != NULL){
// oBM = dataGridMinor->BindingContext->get_Item(oDataTableMinor);
// if(oBM->Count > 0){
// dataGridMinor->Select(dataGridMinor->CurrentCell.RowNumber);
// }
// }
// }
private: System::Void btnSearch_Click(System::Object * sender, System::EventArgs * e)
{
String * comboxText[]={S"全部 ",S"全て ",S"All "};
comboBox1->Text=comboxText[iLanguage];
comboBox2->Text=comboxText[iLanguage];
String* sTempProcessNo;
sTempProcessNo=comboBoxProcessNum->SelectedValue->ToStr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -