📄 returnstock.h
字号:
this->btn_Close->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"btn_Close.TabIndex")));
this->btn_Close->Text = resources->GetString(S"btn_Close.Text");
this->btn_Close->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"btn_Close.TextAlign")));
this->btn_Close->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"btn_Close.Visible")));
this->btn_Close->Click += new System::EventHandler(this, btn_Close_Click);
//
// dataGridReturn
//
this->dataGridReturn->AccessibleDescription = resources->GetString(S"dataGridReturn.AccessibleDescription");
this->dataGridReturn->AccessibleName = resources->GetString(S"dataGridReturn.AccessibleName");
this->dataGridReturn->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"dataGridReturn.Anchor")));
this->dataGridReturn->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"dataGridReturn.BackgroundImage")));
this->dataGridReturn->CaptionFont = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridReturn.CaptionFont")));
this->dataGridReturn->CaptionText = resources->GetString(S"dataGridReturn.CaptionText");
this->dataGridReturn->CaptionVisible = false;
this->dataGridReturn->DataMember = S"";
this->dataGridReturn->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"dataGridReturn.Dock")));
this->dataGridReturn->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridReturn.Enabled")));
this->dataGridReturn->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"dataGridReturn.Font")));
this->dataGridReturn->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dataGridReturn->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"dataGridReturn.ImeMode")));
this->dataGridReturn->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"dataGridReturn.Location")));
this->dataGridReturn->Name = S"dataGridReturn";
this->dataGridReturn->ReadOnly = true;
this->dataGridReturn->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"dataGridReturn.RightToLeft")));
this->dataGridReturn->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"dataGridReturn.Size")));
this->dataGridReturn->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"dataGridReturn.TabIndex")));
this->dataGridReturn->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"dataGridReturn.Visible")));
this->dataGridReturn->DoubleClick += new System::EventHandler(this, dataGridReturn_DoubleClick);
//
// lbl_Title
//
this->lbl_Title->AccessibleDescription = resources->GetString(S"lbl_Title.AccessibleDescription");
this->lbl_Title->AccessibleName = resources->GetString(S"lbl_Title.AccessibleName");
this->lbl_Title->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"lbl_Title.Anchor")));
this->lbl_Title->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.AutoSize")));
this->lbl_Title->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"lbl_Title.Dock")));
this->lbl_Title->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Enabled")));
this->lbl_Title->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"lbl_Title.Font")));
this->lbl_Title->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"lbl_Title.Image")));
this->lbl_Title->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.ImageAlign")));
this->lbl_Title->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.ImageIndex")));
this->lbl_Title->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"lbl_Title.ImeMode")));
this->lbl_Title->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"lbl_Title.Location")));
this->lbl_Title->Name = S"lbl_Title";
this->lbl_Title->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"lbl_Title.RightToLeft")));
this->lbl_Title->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"lbl_Title.Size")));
this->lbl_Title->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"lbl_Title.TabIndex")));
this->lbl_Title->Text = resources->GetString(S"lbl_Title.Text");
this->lbl_Title->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"lbl_Title.TextAlign")));
this->lbl_Title->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"lbl_Title.Visible")));
//
// ReturnStock
//
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->btn_Accept);
this->Controls->Add(this->btn_Close);
this->Controls->Add(this->dataGridReturn);
this->Controls->Add(this->lbl_Title);
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->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"ReturnStock";
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, ReturnStock_Load);
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGridReturn))->EndInit();
this->ResumeLayout(false);
}
void InitGrid(void);
void GetGridData(void);
void DispReturnCheck(void);
void GetCostName(String* sProcess, String** sName);
private: System::Void ReturnStock_Load(System::Object * sender, System::EventArgs * e)
{
//GridEvent
dataGridReturn->add_Paint(new System::Windows::Forms::PaintEventHandler(this, dataGridReturn_Paint));
//Connect DB
oDB = new DBBase();
oDB->blnCnnOpen();
//Initialize Grid
InitGrid();
//GetData
GetGridData();
}
private: System::Void btn_Close_Click(System::Object * sender, System::EventArgs * e)
{
this->Close();
}
private: System::Void dataGridReturn_Paint(System::Object * sender, System::Windows::Forms::PaintEventArgs * e)
{
BindingManagerBase* oBM;
oBM = dataGridReturn->BindingContext->get_Item(oDataTable);
if(oBM->Count > 0){
dataGridReturn->Select(dataGridReturn->CurrentCell.RowNumber);
}
}
private: System::Void btn_Accept_Click(System::Object * sender, System::EventArgs * e)
{
DispReturnCheck();
}
private: System::Void dataGridReturn_DoubleClick(System::Object * sender, System::EventArgs * e)
{
DispReturnCheck();
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -