📄 frmdelivercost.h
字号:
this->chk2->Text = resources->GetString(S"chk2.Text");
this->chk2->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk2.TextAlign")));
this->chk2->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"chk2.Visible")));
this->chk2->CheckedChanged += new System::EventHandler(this, chk2_CheckedChanged);
//
// chk1
//
this->chk1->AccessibleDescription = resources->GetString(S"chk1.AccessibleDescription");
this->chk1->AccessibleName = resources->GetString(S"chk1.AccessibleName");
this->chk1->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"chk1.Anchor")));
this->chk1->Appearance = (*__try_cast<__box System::Windows::Forms::Appearance * >(resources->GetObject(S"chk1.Appearance")));
this->chk1->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"chk1.BackgroundImage")));
this->chk1->CheckAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk1.CheckAlign")));
this->chk1->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"chk1.Dock")));
this->chk1->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"chk1.Enabled")));
this->chk1->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"chk1.FlatStyle")));
this->chk1->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"chk1.Font")));
this->chk1->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"chk1.Image")));
this->chk1->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk1.ImageAlign")));
this->chk1->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"chk1.ImageIndex")));
this->chk1->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"chk1.ImeMode")));
this->chk1->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"chk1.Location")));
this->chk1->Name = S"chk1";
this->chk1->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"chk1.RightToLeft")));
this->chk1->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"chk1.Size")));
this->chk1->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"chk1.TabIndex")));
this->chk1->Text = resources->GetString(S"chk1.Text");
this->chk1->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk1.TextAlign")));
this->chk1->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"chk1.Visible")));
this->chk1->CheckedChanged += new System::EventHandler(this, chk1_CheckedChanged);
//
// chk0
//
this->chk0->AccessibleDescription = resources->GetString(S"chk0.AccessibleDescription");
this->chk0->AccessibleName = resources->GetString(S"chk0.AccessibleName");
this->chk0->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"chk0.Anchor")));
this->chk0->Appearance = (*__try_cast<__box System::Windows::Forms::Appearance * >(resources->GetObject(S"chk0.Appearance")));
this->chk0->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"chk0.BackgroundImage")));
this->chk0->CheckAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk0.CheckAlign")));
this->chk0->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"chk0.Dock")));
this->chk0->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"chk0.Enabled")));
this->chk0->FlatStyle = (*__try_cast<__box System::Windows::Forms::FlatStyle * >(resources->GetObject(S"chk0.FlatStyle")));
this->chk0->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"chk0.Font")));
this->chk0->Image = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"chk0.Image")));
this->chk0->ImageAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk0.ImageAlign")));
this->chk0->ImageIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"chk0.ImageIndex")));
this->chk0->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"chk0.ImeMode")));
this->chk0->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"chk0.Location")));
this->chk0->Name = S"chk0";
this->chk0->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"chk0.RightToLeft")));
this->chk0->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"chk0.Size")));
this->chk0->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"chk0.TabIndex")));
this->chk0->Text = resources->GetString(S"chk0.Text");
this->chk0->TextAlign = (*__try_cast<__box System::Drawing::ContentAlignment * >(resources->GetObject(S"chk0.TextAlign")));
this->chk0->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"chk0.Visible")));
this->chk0->CheckedChanged += new System::EventHandler(this, chk0_CheckedChanged);
//
// CostDateName
//
this->CostDateName->AccessibleDescription = resources->GetString(S"CostDateName.AccessibleDescription");
this->CostDateName->AccessibleName = resources->GetString(S"CostDateName.AccessibleName");
this->CostDateName->Anchor = (*__try_cast<__box System::Windows::Forms::AnchorStyles * >(resources->GetObject(S"CostDateName.Anchor")));
this->CostDateName->AutoSize = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"CostDateName.AutoSize")));
this->CostDateName->BackColor = System::Drawing::SystemColors::Control;
this->CostDateName->BackgroundImage = (__try_cast<System::Drawing::Image * >(resources->GetObject(S"CostDateName.BackgroundImage")));
this->CostDateName->Dock = (*__try_cast<__box System::Windows::Forms::DockStyle * >(resources->GetObject(S"CostDateName.Dock")));
this->CostDateName->Enabled = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"CostDateName.Enabled")));
this->CostDateName->Font = (__try_cast<System::Drawing::Font * >(resources->GetObject(S"CostDateName.Font")));
this->CostDateName->ImeMode = (*__try_cast<__box System::Windows::Forms::ImeMode * >(resources->GetObject(S"CostDateName.ImeMode")));
this->CostDateName->Location = (*__try_cast<__box System::Drawing::Point * >(resources->GetObject(S"CostDateName.Location")));
this->CostDateName->MaxLength = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"CostDateName.MaxLength")));
this->CostDateName->Multiline = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"CostDateName.Multiline")));
this->CostDateName->Name = S"CostDateName";
this->CostDateName->PasswordChar = (*__try_cast<__box System::Char * >(resources->GetObject(S"CostDateName.PasswordChar")));
this->CostDateName->RightToLeft = (*__try_cast<__box System::Windows::Forms::RightToLeft * >(resources->GetObject(S"CostDateName.RightToLeft")));
this->CostDateName->ScrollBars = (*__try_cast<__box System::Windows::Forms::ScrollBars * >(resources->GetObject(S"CostDateName.ScrollBars")));
this->CostDateName->Size = (*__try_cast<__box System::Drawing::Size * >(resources->GetObject(S"CostDateName.Size")));
this->CostDateName->TabIndex = (*__try_cast<__box System::Int32 * >(resources->GetObject(S"CostDateName.TabIndex")));
this->CostDateName->Text = resources->GetString(S"CostDateName.Text");
this->CostDateName->TextAlign = (*__try_cast<__box System::Windows::Forms::HorizontalAlignment * >(resources->GetObject(S"CostDateName.TextAlign")));
this->CostDateName->Visible = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"CostDateName.Visible")));
this->CostDateName->WordWrap = (*__try_cast<__box System::Boolean * >(resources->GetObject(S"CostDateName.WordWrap")));
//
// frmDeliverCost
//
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->CostDateName);
this->Controls->Add(this->chk0);
this->Controls->Add(this->chk1);
this->Controls->Add(this->chk2);
this->Controls->Add(this->cmbProCode);
this->Controls->Add(this->buttonClose);
this->Controls->Add(this->buttonPrint);
this->Controls->Add(this->label4);
this->Controls->Add(this->cboReason);
this->Controls->Add(this->label2);
this->Controls->Add(this->label9);
this->Controls->Add(this->txtLot);
this->Controls->Add(this->txtNum);
this->Controls->Add(this->txtProName);
this->Controls->Add(this->label3);
this->Controls->Add(this->lbl_Title);
this->Controls->Add(this->dataGrid1);
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->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"frmDeliverCost";
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, frmDeliverCost_Load);
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGrid1))->EndInit();
this->ResumeLayout(false);
}
private:
int iLanguage;
String* sFactory;
String* sLine;
String* sProcess;
int iGroup;
String* cShift;
infClass* oInf;
DBBase* oDB;
String * sScheck0;
String * sScheck1;
String * sScheck2;
DataTable * DCostMST;
String * strCdName;
void InitGridGPartsMst();
void strGetGData(DBBase * DBTmp,String * strproductcode);
void strGetYGData(DBBase * DBTmp,String * strproductcode);
bool StrProduct();
bool DateCell();
void strDeliverCostMst(DBBase * DBTmp,String * check0,String * check1,String * check2);
bool updatecostmst(int istocktype);
String * CostMstName();
int infc;
private: System::Void frmDeliverCost_Load(System::Object * sender, System::EventArgs * e)
{
InitGridGPartsMst();
infc=0;
DataTable *dTmp1;
dTmp1 = FAP::StockProcess::dtblGetYProcessPro(oInf,oDB);
//dataGrid1->DataSource = dTmp1;
cmbProCode->DataSource = dTmp1;
cmbProCode->DisplayMember = S"PRODUCT_NO";
cmbProCode->SelectedIndex=0;
switch(oInf->intLang)
{
case FapLan_EN:
strCdName = S"NAME_E";
break;
case FapLan_JP:
strCdName = S"NAME_J";
break;
case FapLan_CN:
strCdName = S"NAME_C";
break;
default:
strCdName = S"NAME_C";
}
if (StrProduct()==false)
{
strGetYGData(oDB,cmbProCode->Text);
}
else
{
strGetGData(oDB,cmbProCode->Text);
}
//chk2->Checked=true;
//chk1->Checked=true;
//chk0->Checked=true;
txtProName->Text = FAP::ProductResultInput::strGetProName(cmbProCode->Text,iLanguage,oDB);
}
private: System::Void cmbProCode_SelectedIndexChanged(System::Object * sender, System::EventArgs * e)
{
if (infc!=0)
{
if (StrProduct()==false)
{
strGetYGData(oDB,cmbProCode->Text);
}
else
{
strGetGData(oDB,cmbProCode->Text);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -