protected void tcboxINCLUDECOMPLETE_CheckedChanged(object sender, EventArgs e) { PHDY phdy = new PHDY(); phdy.iPORDNOENT = iPURCHASE_ORDER.Text; bool isOK = phdy.Execute(true); if (!isOK) { ShowMessage(phdy.Errors.ToString()); } else { phdy.Execute(); vSUPPLIER.Text = phdy.vSUPNAME_0.ToString(); UpdateGoodsInTable(); tab_Clear.Visible = true; vSUPPLIER.Visible = true; vSUPPLIER_LABEL.Visible = true; vINCLUDECOMPLETE_LABEL.Visible = true; tcboxINCLUDECOMPLETE.Visible = true; } }
private void iPURCHASE_ORDER_Keychanged(object sender, EventArgs e) { grdGOODSIN.Visible = true; vSUPPLIER_LABEL.Visible = true; vSUPPLIER.Visible = true; vINCLUDECOMPLETE_LABEL.Visible = true; tcboxINCLUDECOMPLETE.Visible = true; PHDY phdy = new PHDY(); phdy.iPORDNOENT = iPURCHASE_ORDER.Text; bool isOK = phdy.Execute(true); if (!isOK) { ShowMessage(phdy.Errors.ToString()); } else { phdy.Execute(); vSUPPLIER.Text = phdy.vSUPNAME_0.ToString(); UpdateGoodsInTable(); } }