本文整理汇总了C#中BusinessObjects.MasterDataBLL.GetPaymentTermById方法的典型用法代码示例。如果您正苦于以下问题:C# MasterDataBLL.GetPaymentTermById方法的具体用法?C# MasterDataBLL.GetPaymentTermById怎么用?C# MasterDataBLL.GetPaymentTermById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BusinessObjects.MasterDataBLL
的用法示例。
在下文中一共展示了MasterDataBLL.GetPaymentTermById方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
String title = this.GetLocalResourceObject("titleLabel.Text").ToString();
this.Page.Title = title;
int VendorID = int.Parse(Request["VendorID"]);
this.ViewState["VendorID"] = VendorID;
MasterData.VendorRow vendorRow = new MasterDataBLL().GetVendorByID(VendorID);
txtVendorName.Text = vendorRow.VendorName;
txtVendorAddress.Text = vendorRow.VendorAddress;
txtCity.Text = vendorRow.City;
txtPostal.Text = vendorRow.Postal;
txtContactName.Text = vendorRow.ContactName;
MasterDataBLL masterDataBLL = new MasterDataBLL();
MasterData.VendorTypeRow VendorTypeRow = masterDataBLL.GetVendorTypeById(vendorRow.VendorTypeID);
txtVendorType.Text = VendorTypeRow.VendorTypeName;
txtCurrency.Text = masterDataBLL.GetCurrencyByID(VendorTypeRow.CurrencyID).CurrencyFullName;
txtCompany.Text = masterDataBLL.GetCompanyById(VendorTypeRow.CompanyID).CompanyName;
txtCompanyCode.Text = masterDataBLL.GetCompanyById(VendorTypeRow.CompanyID).CompanyCode;
this.txtPhoneNumber.Text = vendorRow.PhoneNumber;
this.txtOneTimeVendor.Text = vendorRow.OneTimeVendor ? "Y" : "N";
this.txtHoldVendor.Text = vendorRow.HoldVendor ? "Y" : "N";
if (!vendorRow.IsPurchaseingPostalCodeNull()) {
this.txtPurchaseingPostalCode.Text = vendorRow.PurchaseingPostalCode;
}
if (!vendorRow.IsAlphaSearchKeyNull()) {
this.txtAlphaSearchKey.Text = vendorRow.AlphaSearchKey;
}
if (!vendorRow.IsPurchasingCityNull()) {
this.txtPurchasingCity.Text = vendorRow.PurchasingCity;
}
if (!vendorRow.IsPurchasingContactNull()) {
this.txtPurchasingContact.Text = vendorRow.PurchasingContact;
}
if (!vendorRow.IsPurchasingAddressNull()) {
this.txtPurchasingAddress.Text = vendorRow.PurchasingAddress;
}
if (!vendorRow.IsPurchasePhoneNumberNull()) {
this.txtPurchasePhoneNumber.Text = vendorRow.PurchasePhoneNumber;
}
this.txtBankCode.Text = vendorRow.BankCode;
this.txtMethodPayment.Text = masterDataBLL.GetMethodPaymentById(vendorRow.MethodPaymentID)[0].MethodPaymentName;
this.txtPaymentTerm.Text = masterDataBLL.GetPaymentTermById(vendorRow.PaymentTermID)[0].PaymentTermName;
this.txtTransType.Text = masterDataBLL.GetTransTypeById(vendorRow.TransTypeID)[0].TransTypeName;
txtVATRate.Text = masterDataBLL.GetVatTypeById(vendorRow.VATTypeID)[0].VatTypeName;
txtBankName.Text = vendorRow.BankName.ToString();
if (!vendorRow.IsAccountNoNull()) {
txtAccountNo.Text = vendorRow.AccountNo;
}
if (!vendorRow.IsBankNoNull()) {
this.txtBankNo.Text = vendorRow.BankNo;
}
if (!vendorRow.IsACTypeIDNull()) {
this.txtACType.Text = masterDataBLL.GetACTypeById(vendorRow.ACTypeID)[0].ACTypeName;
}
if (!vendorRow.IsRemarkNull()) {
this.txtRemark.Text = vendorRow.Remark;
}
}
示例2: ExportVendorAVM
/// <summary>
/// Vendor导出
/// </summary>
/// <param name="FormID"></param>
/// <returns></returns>
private bool ExportVendorAVM(MasterData.VendorRow vendor, int logId)
{
string BakPath = ConfigurationManager.AppSettings["ExportService.BakPath"];
FormVendorBLL formvendorbll = new FormVendorBLL();
MasterDataBLL masterdatabll = new MasterDataBLL();
try {
string FileName = ConfigurationManager.AppSettings["ExportService.VendorAVMFileName"];
string spit = "\t";
MasterData.PaymentTermRow paymentTerm = null;
MasterData.VendorTypeRow vendorType = null;
MasterData.CompanyRow company = null;
MasterData.CurrencyRow currency = null;
MasterData.MethodPaymentRow paymentType = null;
MasterData.VatTypeRow VatType = null;
MasterData.BankCodeRow bankCode = null;
MasterData.TransTypeRow transType = null;
MasterData.ACTypeRow acType = null;
paymentTerm = masterdatabll.GetPaymentTermById(vendor.PaymentTermID)[0];
vendorType = masterdatabll.GetVendorTypeById(vendor.VendorTypeID);
company = masterdatabll.GetCompanyById(vendor.CompanyID);
currency = masterdatabll.GetCurrencyByID(vendorType.CurrencyID);
paymentType = masterdatabll.GetMethodPaymentById(vendor.MethodPaymentID)[0];
VatType = masterdatabll.GetVatTypeById(vendor.VATTypeID)[0];
bankCode = masterdatabll.GetBankCodeById(vendor.BankCodeID)[0];
transType = masterdatabll.GetTransTypeById(vendor.TransTypeID)[0];
acType = masterdatabll.GetACTypeById(vendor.ACTypeID)[0];
string ActionName = "";
string content = "";
switch (vendor.ActionType) {
case 0:
ActionName = "D";
#region 删除
content =
"" + spit +
ActionName + spit +
"" + spit +
"VZ" + spit +
bSubstring(vendor.VendorCode, 5) + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
0 + spit +
0 + spit +
0 + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
0 + spit +
"" + spit +
"" + spit +
"" + spit +
0 + spit +
"" + spit +
0 + spit +
0 + spit +
0 + spit +
0 + spit +
0 + spit +
0 + spit +
"" + spit +
"" + spit +
0 + spit +
"" + spit +
"" + spit +
0 + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
0 + spit +
0 + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
0 + spit +
0 + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
//.........这里部分代码省略.........
示例3: ExportPO
private bool ExportPO(int formid, int logId)
{
string BakPath = ConfigurationManager.AppSettings["ExportService.BakPath"];
AuthorizationBLL authorizationbll = new AuthorizationBLL();
MasterDataBLL masterdatabll = new MasterDataBLL();
FormQueryBLL formQueryBLL = new FormQueryBLL();
FormPurchaseBLL formPurchaseBLL = new FormPurchaseBLL();
OUTreeBLL outreebll = new OUTreeBLL();
PurchaseDS.FormDataTable l_dtform = new PurchaseDS.FormDataTable();
PurchaseDS.FormRow form = l_dtform.NewFormRow();
try {
PurchaseDS.FormPORow formPO = formPurchaseBLL.GetFormPOByID(formid);
PurchaseDS.FormPODetailDataTable formPODetail = formPurchaseBLL.GetPODetailByFormPOID(formPO.FormPOID);
form = formPurchaseBLL.GetFormByID(formPO.FormPOID)[0];
string POFileName = ConfigurationManager.AppSettings["ExportService.POFileName"];
string POLineFileName = ConfigurationManager.AppSettings["ExportService.POLineFileName"];
string spit = "\t";
string CompanyCode = masterdatabll.GetCompanyById(masterdatabll.GetVendorTypeById(masterdatabll.GetVendorByID(formPO.VendorID).VendorTypeID).CompanyID).CompanyCode;
string VendorCode = masterdatabll.GetVendorByID(formPO.VendorID).VendorCode;
string POcontent = (
"PH" + spit +
"" + spit +
formPO.BPCSPONo + spit +
"0" + spit +
"" + spit +
"0" + spit +
CompanyCode + spit +
"" + spit +
CompanyCode + spit +
VendorCode + spit +
"0" + spit +
"4" + spit +
"" + spit +
masterdatabll.GetCompanyById(formPO.CompanyID).CompanyName + spit +
authorizationbll.GetStuffUserById(form.UserID).UserName.ToUpper() + spit +
bSubstring(formPO.DeliveryAddress, 30) + spit +
SpitAddress(formPO.DeliveryAddress, 60) + spit +
SpitAddress(formPO.DeliveryAddress, 90) + spit +
"" + spit +
"" + spit +
"" + spit +
form.SubmitDate.ToString("yyyyMMdd") + spit +
"0" + spit +
"0" + spit +
"0" + spit +
formPODetail[0].DeliveryDate.ToString("yyyyMMdd") + spit +
"0" + spit +
"0" + spit +
bSubstring(formPO.Remark, 30) + spit +
masterdatabll.GetPaymentTermById(masterdatabll.GetVendorByID(formPO.VendorID).PaymentTermID)[0].PaymentTermName + spit +
"1" + spit +
"" + spit +
outreebll.GetOrganizationUnitById(form.OrganizationUnitID).OrganizationUnitCode + spit +
masterdatabll.GetShippingTermById(formPO.ShippingTermID).ShippingTermCode + spit +
"" + spit +
masterdatabll.GetCurrencyByID(formPO.CurrencyID).CurrencyShortName + spit +
formPO.ExchangeRate + spit +
formPO.ExchangeRate + spit +
formPODetail.Rows.Count + spit +
formPO.ExchangeRate + spit +
authorizationbll.GetStuffUserById(form.UserID).UserName.ToUpper() + spit +
"" + spit +
authorizationbll.GetStuffUserById(form.UserID).UserName.ToUpper() + spit +
form.ApprovedDate.ToString("yyyyMMdd") + spit +
"" + spit +
"0" + spit +
"" + spit +
"0" + spit +
"" + spit +
"" + spit +
"" + spit +
"" + spit +
"").Replace("\r", "").Replace("\n", "");
int order = 0;
string[] PODetailcontent = new string[formPODetail.Rows.Count];
foreach (PurchaseDS.FormPODetailRow l_drformPODetail in formPODetail) {
order++;
PODetailcontent[order - 1] = (
"PO" + spit +
formPO.BPCSPONo + spit +
order + spit +
l_drformPODetail.ItemCode.ToUpper() + spit +
VendorCode + spit +
l_drformPODetail.Quantity + spit +
l_drformPODetail.Quantity + spit +
l_drformPODetail.DeliveryDate.ToString("yyyyMMdd") + spit +
"" + spit +
"0" + spit +
l_drformPODetail.AmountRMB.ToString() + spit +
"0" + spit +
"0" + spit +
"EA" + spit +
"0" + spit +
"" + spit +
"0" + spit +
"0" + spit +
"" + spit +
"" + spit +
"" + spit +
//.........这里部分代码省略.........
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!this.IsPostBack) {
String title = this.GetLocalResourceObject("titleLabel.Text").ToString();
PageUtility.SetContentTitle(this.Page, title);
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
PurchaseDS.FormRow rowForm = this.FormVendorBLL.GetFormByID(formID)[0];
PurchaseDS.FormVendorRow rowForVendor = this.FormVendorBLL.GetFormVendorByID(formID)[0];
if (rowForm.IsProcIDNull()) {
ViewState["ProcID"] = "";
} else {
ViewState["ProcID"] = rowForm.ProcID;
}
this.FormNoCtl.Text = rowForm.FormNo;
AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID);
this.StuffNameCtl.Text = CommonUtility.GetStaffFullName(applicant);
this.PositionNameCtl.Text = new OUTreeBLL().GetPositionById(rowForm.PositionID).PositionName;
if (new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID) != null) {
this.DepartmentNameCtl.Text = new OUTreeBLL().GetOrganizationUnitById(rowForm.OrganizationUnitID).OrganizationUnitName;
}
this.StuffNoCtl.Text = applicant.IsStuffNoNull() ? "" : applicant.StuffNo;
this.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString();
//历史单据
if (rowForm.IsRejectedFormIDNull()) {
lblRejectFormNo.Text = "无";
} else {
PurchaseDS.FormRow rejectedForm = this.FormVendorBLL.GetFormByID(rowForm.RejectedFormID)[0];
this.lblRejectFormNo.Text = rejectedForm.FormNo;
this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/FormPurchase/FormVendorApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')";
}
PurchaseDS.FormVendorRow FormVendorTR = FormVendorBLL.GetFormVendorByID(formID)[0];
if (!FormVendorTR.IsVendorNameNull()) {
txtVendorName.Text = FormVendorTR.VendorName;
}
if (!FormVendorTR.IsVendorAddressNull()) {
txtVendorAddress.Text = FormVendorTR.VendorAddress;
}
if (!FormVendorTR.IsCityNull()) {
txtCity.Text = FormVendorTR.City;
}
if (!FormVendorTR.IsPostalNull()) {
txtPostal.Text = FormVendorTR.Postal;
}
if (!FormVendorTR.IsContactNameNull()) {
txtContactName.Text = FormVendorTR.ContactName;
}
MasterDataBLL masterDataBLL = new MasterDataBLL();
if (!FormVendorTR.IsVendorTypeIDNull()) {
this.VendorTypeControl.VendorTypeID = FormVendorTR.VendorTypeID.ToString();
MasterData.VendorTypeRow VendorTypeRow = masterDataBLL.GetVendorTypeById(FormVendorTR.VendorTypeID);
txtCurrency.Text = masterDataBLL.GetCurrencyByID(VendorTypeRow.CurrencyID).CurrencyFullName;
txtCompany.Text = masterDataBLL.GetCompanyById(VendorTypeRow.CompanyID).CompanyName;
txtCompanyCode.Text = masterDataBLL.GetCompanyById(VendorTypeRow.CompanyID).CompanyCode;
}
if (!FormVendorTR.IsPhoneNumberNull()) {
this.txtPhoneNumber.Text = FormVendorTR.PhoneNumber;
}
if (!FormVendorTR.IsOneTimeVendorNull()) {
this.txtOneTimeVendor.Text = FormVendorTR.OneTimeVendor ? "Y" : "N";
}
if (!FormVendorTR.IsHoldVendorNull()) {
this.txtHoldVendor.Text = FormVendorTR.HoldVendor ? "Y" : "N";
}
if (!FormVendorTR.IsPurchaseingPostalCodeNull()) {
this.txtPurchaseingPostalCode.Text = FormVendorTR.PurchaseingPostalCode;
}
if (!FormVendorTR.IsAlphaSearchKeyNull()) {
this.txtAlphaSearchKey.Text = FormVendorTR.AlphaSearchKey;
}
if (!FormVendorTR.IsPurchasingCityNull()) {
this.txtPurchasingCity.Text = FormVendorTR.PurchasingCity;
}
if (!FormVendorTR.IsPurchasingContactNull()) {
this.txtPurchasingContact.Text = FormVendorTR.PurchasingContact;
}
if (!FormVendorTR.IsPurchasingAddressNull()) {
this.txtPurchasingAddress.Text = FormVendorTR.PurchasingAddress;
}
if (!FormVendorTR.IsPurchasePhoneNumberNull()) {
this.txtPurchasePhoneNumber.Text = FormVendorTR.PurchasePhoneNumber;
}
if (!FormVendorTR.IsBankCodeNull()) {
this.txtBankCode.Text = FormVendorTR.BankCode;
}
if (!FormVendorTR.IsMethodPaymentIDNull()) {
this.txtMethodPayment.Text = masterDataBLL.GetMethodPaymentById(FormVendorTR.MethodPaymentID)[0].MethodPaymentName;
}
if (!FormVendorTR.IsPaymentTermIDNull()) {
this.txtPaymentTerm.Text = masterDataBLL.GetPaymentTermById(FormVendorTR.PaymentTermID)[0].PaymentTermName;
}
if (!FormVendorTR.IsTransTypeIDNull()) {
this.txtTransType.Text = masterDataBLL.GetTransTypeById(FormVendorTR.TransTypeID)[0].TransTypeName;
}
if (!FormVendorTR.IsVATTypeIDNull()) {
txtVATRate.Text = masterDataBLL.GetVatTypeById(FormVendorTR.VATTypeID)[0].VatTypeName;
//.........这里部分代码省略.........