// Accept Draft void btnADraft_Click(object sender, EventArgs e) { string msg; if (DialogResult.OK == MessageBox.Show("According to the order receipt, whether to continue?", "Receipt of documents", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button2)) { Console.WriteLine("DraftID:" + _QA23View.DraftID); if (string.IsNullOrEmpty(_QA23View.DraftID)) { MessageBox.Show("请选择委托单据"); return; } if (Requibiz.Accept(_QA23View.DraftID, out msg)) { _QA23View.QueryDraftPlan("MXQ" + _QA23View.TDraftID, "", _QA23View.DateB, _QA23View.DateE, _QA23View.State); MainMsg = "Accept " + _QA23View.TDraftID + " success ! "; // WriteTips(1, CultureLanuage.Translator(this.Name, 3, "Add VoucherID DOC: {0} successful!", _QA23View.DraftID)); } else { MessageBox.Show(msg); } _QA23View.DraftID = ""; } }
void btnRejectVoucher_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(_QA23View.VoucherID)) { MainMsg = "Add test document receipt failed"; return; } if (Requibiz.Reject(_QA23View.VoucherID, out msg)) { MainMsg = "Reject " + _QA23View.VoucherID + " success ! "; // WriteTips(1, CultureLanguage.Translator(this.Name, 3, "Reject VoucherID DOC: {0} successful!", _QA23View.VoucherID)); _QA23View.QueryDraftPlan("MXQ" + _QA23View.TDraftID, "RMXQ" + _QA23View.TVoucherID, _QA23View.DateB, _QA23View.DateE, _QA23View.State); } else { MainMsg = "Sample document acceptance failed"; } _QA23View.VoucherID = ""; }
// Accept By Voucher void btnAcceptVoucher_Click(object sender, EventArgs e) { Console.WriteLine("VoucherID:" + _QA23View.VoucherID); if (string.IsNullOrEmpty(_QA23View.VoucherID)) { //WriteTips(1, CultureLanguage.Translator(this.Name, 3, "Please select the sample")); return; } if (Requibiz.Accept(_QA23View.VoucherID, out msg)) { MainMsg = "Accept " + _QA23View.VoucherID + " success ! "; // WriteTips(1, CultureLanguage.Translator(this.Name, 3, "Accept VoucherID DOC: {0} successful!!", _QA23View.VoucherID)); _QA23View.QueryDraftPlan("MXQ" + _QA23View.TDraftID, "RMXQ" + _QA23View.TVoucherID, _QA23View.DateB, _QA23View.DateE, _QA23View.State); } else { MainMsg = "Add test document receipt failed"; } _QA23View.VoucherID = ""; }