本文整理汇总了C#中BusinessObjects.MasterDataBLL.GetPaymentTypeById方法的典型用法代码示例。如果您正苦于以下问题:C# MasterDataBLL.GetPaymentTypeById方法的具体用法?C# MasterDataBLL.GetPaymentTypeById怎么用?C# MasterDataBLL.GetPaymentTypeById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BusinessObjects.MasterDataBLL
的用法示例。
在下文中一共展示了MasterDataBLL.GetPaymentTypeById方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!this.IsPostBack) {
PageUtility.SetContentTitle(this.Page, "������������");
this.Page.Title = "������������";
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
FormDS.FormRow rowForm = this.SalesApplyBLL.GetFormByID(formID)[0];
FormDS.FormApplyRow rowFormApply = this.SalesApplyBLL.GetFormApplyByID(formID)[0];
if (rowForm.IsProcIDNull()) {
ViewState["ProcID"] = "";
} else {
ViewState["ProcID"] = rowForm.ProcID;
}
ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID;
this.FormNoCtl.Text = rowForm.FormNo;
this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString();
AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID);
this.StuffNameCtl.Text = applicant.StuffName;
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.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString();
this.BeginPeriodCtl.Text = rowFormApply.BeginPeriod.ToString("yyyy-MM");
this.EndPeriodCtl.Text = rowFormApply.EndPeriod.ToString("yyyy-MM");
MasterDataBLL masterBll = new MasterDataBLL();
this.ExpenseSubCategoryCtl.Text = masterBll.GetExpenseSubCateNameById(rowFormApply.ExpenseSubCategoryID);
ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormApply.CustomerID);
this.CustomerNameCtl.Text = customer.CustomerName;
//this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName;
this.ShopNameCtl.Text = masterBll.GetShopByID(rowFormApply.ShopID).ShopName;
this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormApply.PaymentTypeID).PaymentTypeName;
if (!rowFormApply.IsContractNoNull()) {
this.ContractNoCtl.Text = rowFormApply.ContractNo;
}
this.AmountCtl.Text = rowFormApply.Amount.ToString("N");
if (!rowFormApply.IsRemarkNull()) {
this.RemarkCtl.Text = rowFormApply.Remark;
}
if (!rowFormApply.IsAttachedFileNameNull())
this.UCFileUpload.AttachmentFileName = rowFormApply.AttachedFileName;
if (!rowFormApply.IsRealAttachedFileNameNull())
this.UCFileUpload.RealAttachmentFileName = rowFormApply.RealAttachedFileName;
if (!rowFormApply.IsPromotionBeginDateNull()) {
this.PromotionBeginCtl.Text = rowFormApply.PromotionBeginDate.ToString("yyyy-MM-dd");
}
if (!rowFormApply.IsPromotionEndDateNull()) {
this.PromotionEndCtl.Text = rowFormApply.PromotionEndDate.ToString("yyyy-MM-dd");
}
this.PromotionScopeCtl.Text = masterBll.GetPromotionScopeById(rowFormApply.PromotionScopeID).PromotionScopeName;
this.PromotionTypeCtl.Text = masterBll.GetPromotionTypeById(rowFormApply.PromotionTypeID).PromotionTypeName;
if (!rowFormApply.IsPromotionDescNull()) {
this.PromotionDescCtl.Text = rowFormApply.PromotionDesc;
}
this.ShelfTypeCtl.Text = masterBll.GetShelfTypeById(rowFormApply.ShelfTypeID).ShelfTypeName;
if (!rowFormApply.IsFirstVolumeNull()) {
this.FirstVolumeCtl.Text = rowFormApply.FirstVolume.ToString();
}
if (!rowFormApply.IsSecondVolumeNull()) {
this.SecondVolumeCtl.Text = rowFormApply.SecondVolume.ToString();
}
if (!rowFormApply.IsThirdVolumeNull()) {
this.ThirdVolumeCtl.Text = rowFormApply.ThirdVolume.ToString();
}
if (!rowFormApply.IsAverageVolumeNull()) {
this.AverageVolumeCtl.Text = rowFormApply.AverageVolume.ToString();
}
if (!rowFormApply.IsEstimatedSaleVolumeNull()) {
this.txtEstimatedSaleVolume.Text = rowFormApply.EstimatedSaleVolume.ToString();
}
if (!rowFormApply.IsPackageUnitPriceNull()) {
this.txtPackageUnitPrice.Text = rowFormApply.PackageUnitPrice.ToString("N");
}
if (!rowFormApply.IsFormApplyNameNull()) {
this.txtFormApplyName.Text = rowFormApply.FormApplyName;
}
if (!rowFormApply.IsFormApplyNameNull()) {
this.txtFormApplyName.Text = rowFormApply.FormApplyName;
}
if (!rowFormApply.IsReimburseRequirementsNull()) {
int ReimburseRequirement = rowFormApply.ReimburseRequirements;
if ((ReimburseRequirement & (int)SystemEnums.ReimburseRequirements.Picture) == (int)SystemEnums.ReimburseRequirements.Picture) {
chkListReimburseRequirements.Items[0].Selected = true;
}
if ((ReimburseRequirement & (int)SystemEnums.ReimburseRequirements.Agreement) == (int)SystemEnums.ReimburseRequirements.Agreement) {
chkListReimburseRequirements.Items[1].Selected = true;
}
if ((ReimburseRequirement & (int)SystemEnums.ReimburseRequirements.DeliveryOrder) == (int)SystemEnums.ReimburseRequirements.DeliveryOrder) {
chkListReimburseRequirements.Items[2].Selected = true;
}
if ((ReimburseRequirement & (int)SystemEnums.ReimburseRequirements.Contract) == (int)SystemEnums.ReimburseRequirements.Contract) {
chkListReimburseRequirements.Items[3].Selected = true;
}
if ((ReimburseRequirement & (int)SystemEnums.ReimburseRequirements.DM) == (int)SystemEnums.ReimburseRequirements.DM) {
//.........这里部分代码省略.........
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!this.IsPostBack) {
PageUtility.SetContentTitle(this.Page, "������������");
this.Page.Title = "������������";
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
FormDS.FormRow rowForm = this.SalesReimburseBLL.GetFormByID(formID)[0];
FormDS.FormReimburseRow rowFormReimburse = this.SalesReimburseBLL.GetFormReimburseByID(formID)[0];
//�������û��������ɵĻ����Dz���¼����߲鿴������Ϣ��
if (rowForm.StatusID != (int)SystemEnums.FormStatus.ApproveCompleted) {
this.gvSKUDetails.Columns[6].Visible = false;
this.gvSKUDetails.Columns[5].HeaderStyle.Width = 400;
this.DeliveryDIV.Visible = false;
this.upDelivery.Visible = false;
}
if (this.gvSKUDetails.SelectedIndex < 0) {
this.fvDelievery.Visible = false;
}
//���û����Ȩ�Ļ���ô����������ɾ��
int opManageId = BusinessUtility.GetBusinessOperateId(SystemEnums.BusinessUseCase.DeliveryInfo, SystemEnums.OperateEnum.Manage);
AuthorizationDS.PositionRow position = (AuthorizationDS.PositionRow)this.Session["Position"];
PositionRightBLL positionRightBLL = new PositionRightBLL();
this.HasManageRight = positionRightBLL.CheckPositionRight(position.PositionId, opManageId);
//����ID
if (rowForm.IsProcIDNull()) {
ViewState["ProcID"] = "";
} else {
ViewState["ProcID"] = rowForm.ProcID;
}
ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID;
this.FormNoCtl.Text = rowForm.FormNo;
this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString();
AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID);
this.StuffNameCtl.Text = applicant.StuffName;
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.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString();
MasterDataBLL masterBll = new MasterDataBLL();
ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormReimburse.CustomerID);
this.CustomerNameCtl.Text = customer.CustomerName;
this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName;
this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormReimburse.PaymentTypeID).PaymentTypeName;
if (!rowFormReimburse.IsRemarkNull()) {
this.RemarkCtl.Text = rowFormReimburse.Remark;
}
if (!rowFormReimburse.IsAttachedFileNameNull())
this.UCFileUpload.AttachmentFileName = rowFormReimburse.AttachedFileName;
if (!rowFormReimburse.IsRealAttachedFileNameNull())
this.UCFileUpload.RealAttachmentFileName = rowFormReimburse.RealAttachedFileName;
this.odsSKUDetails.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString();
this.odsReimburseDetails.SelectParameters["FormReimburseID"].DefaultValue = rowFormReimburse.FormReimburseID.ToString();
//����ҳ�洦��&��ť����
AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"];
this.ViewState["StuffUserID"] = stuffUser.StuffUserId;
if (rowForm.InTurnUserIds.Contains("P" + stuffUser.StuffUserId + "P")) {
this.SubmitBtn.Visible = true;
this.cwfAppCheck.IsView = false;
this.ViewState["IsView"] = false;
} else {
this.SubmitBtn.Visible = false;
this.cwfAppCheck.IsView = true;
this.ViewState["IsView"] = true;
}
if (rowForm.StatusID == (int)SystemEnums.FormStatus.Rejected && stuffUser.StuffUserId == rowForm.UserID) {
this.EditBtn.Visible = true;
this.ScrapBtn.Visible = true;
} else {
this.EditBtn.Visible = false;
this.ScrapBtn.Visible = false;
}
//��ʷ����
if (rowForm.IsRejectedFormIDNull()) {
lblRejectFormNo.Text = "��";
} else {
FormDS.FormRow rejectedForm = this.SalesReimburseBLL.GetFormByID(rowForm.RejectedFormID)[0];
this.lblRejectFormNo.Text = rejectedForm.FormNo;
this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/OtherForm/ReimburseGoodsApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')";
}
//����ǵ���,��ť���ɼ�
if (this.Request["ShowDialog"] != null) {
if (this.Request["ShowDialog"].ToString() == "1") {
this.upButton.Visible = false;
this.gvSKUDetails.Columns[6].Visible = false;
this.gvSKUDetails.Columns[5].HeaderStyle.Width = 400;
this.Master.FindControl("divMenu").Visible = false;
this.Master.FindControl("tbCurrentPage").Visible = false;
}
}
//.........这里部分代码省略.........
示例3: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!this.IsPostBack) {
PageUtility.SetContentTitle(this.Page, "������������");
this.Page.Title = "������������";
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
FormDS.FormRow rowForm = this.SalesApplyBLL.GetFormByID(formID)[0];
FormDS.FormApplyRow rowFormApply = this.SalesApplyBLL.GetFormApplyByID(formID)[0];
if (rowForm.IsProcIDNull()) {
ViewState["ProcID"] = "";
} else {
ViewState["ProcID"] = rowForm.ProcID;
}
ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID;
this.FormNoCtl.Text = rowForm.FormNo;
this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString();
AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID);
this.StuffNameCtl.Text = applicant.StuffName;
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.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString();
this.BeginPeriodCtl.Text = rowFormApply.BeginPeriod.ToShortDateString();
this.EndPeriodCtl.Text = rowFormApply.EndPeriod.ToShortDateString();
MasterDataBLL masterBll = new MasterDataBLL();
this.ExpenseSubCategoryCtl.Text = masterBll.GetExpenseSubCateNameById(rowFormApply.ExpenseSubCategoryID);
ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormApply.CustomerID);
this.CustomerNameCtl.Text = customer.CustomerName;
this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName;
this.ShopNameCtl.Text = masterBll.GetShopByID(rowFormApply.ShopID).ShopName;
this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormApply.PaymentTypeID).PaymentTypeName;
if (!rowFormApply.IsContractNoNull()) {
this.ContractNoCtl.Text = rowFormApply.ContractNo;
}
this.AmountCtl.Text = rowFormApply.Amount.ToString("N");
if (!rowFormApply.IsRemarkNull()) {
this.RemarkCtl.Text = rowFormApply.Remark;
}
if (!rowFormApply.IsAttachedFileNameNull())
this.UCFileUpload.AttachmentFileName = rowFormApply.AttachedFileName;
if (!rowFormApply.IsRealAttachedFileNameNull())
this.UCFileUpload.RealAttachmentFileName = rowFormApply.RealAttachedFileName;
//��ʷ����
if (rowForm.IsRejectedFormIDNull()) {
lblRejectFormNo.Text = "��";
} else {
FormDS.FormRow rejectedForm = new SalesApplyBLL().GetFormByID(rowForm.RejectedFormID)[0];
this.lblRejectFormNo.Text = rejectedForm.FormNo;
this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/SalesForm/SalesRebateApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')";
}
//�鿴Ԥ����Ϣ��ť
this.btnViewBudget.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/ReportManage/SalesFeeByPosition.aspx?ShowDialog=1','', 'dialogWidth:918px;dialogHeight:660px;resizable:yes;')";
//Ԥ����Ϣ
this.CustomerBudgetCtl.Text = rowFormApply.CustomerBudget.ToString("N");
this.CustomerBudgetRemainCtl.Text = rowFormApply.CustomerBudgetRemain.ToString("N");
this.OUBudgetCtl.Text = rowFormApply.OUBudget.ToString("N");
this.OUApprovedAmountCtl.Text = rowFormApply.OUAppovedAmount.ToString("N");
this.OUApprovingAmountCtl.Text = rowFormApply.OUApprovingAmount.ToString("N");
this.OUCompletedAmountCtl.Text = rowFormApply.OUCompletedAmount.ToString("N");
this.OUReimbursedAmountCtl.Text = rowFormApply.OUReimbursedAmount.ToString("N");
this.OUBudgetRemainCtl.Text = rowFormApply.OUBudgetRemain.ToString("N");
this.OUBudgetRateCtl.Text = ((decimal)(rowFormApply.OUBudgetRate * 100)).ToString("N") + "%";
this.odsApplyDetails.SelectParameters["FormID"].DefaultValue = rowFormApply.FormApplyID.ToString();
//����ҳ�洦��&��ť����
AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"];
this.ViewState["StuffUserID"] = stuffUser.StuffUserId;
if (rowForm.InTurnUserIds.Contains("P" + stuffUser.StuffUserId + "P")) {
this.SubmitBtn.Visible = true;
this.cwfAppCheck.IsView = false;
this.ViewState["IsView"] = false;
} else {
this.SubmitBtn.Visible = false;
this.cwfAppCheck.IsView = true;
this.ViewState["IsView"] = true;
}
if (rowForm.StatusID == (int)SystemEnums.FormStatus.Rejected && stuffUser.StuffUserId == rowForm.UserID) {
this.EditBtn.Visible = true;
this.ScrapBtn.Visible = true;
} else {
this.EditBtn.Visible = false;
this.ScrapBtn.Visible = false;
}
//�رհ�ť
if ((!rowFormApply.IsClose) && rowForm.StatusID == (int)SystemEnums.FormStatus.ApproveCompleted) {
if (stuffUser.StuffUserId == rowForm.UserID || new MasterDataBLL().GetProxyReimburseByParameter(rowForm.UserID, stuffUser.StuffUserId, rowForm.SubmitDate).Count > 0) {
this.CloseBtn.Visible = true;
} else {
this.CloseBtn.Visible = false;
}
//.........这里部分代码省略.........
示例4: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
base.Page_Load(sender, e);
if (!this.IsPostBack) {
PageUtility.SetContentTitle(this.Page, "������������");
this.Page.Title = "������������";
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
FormDS.FormRow rowForm = this.SalesApplyBLL.GetFormByID(formID)[0];
FormDS.FormApplyRow rowFormApply = this.SalesApplyBLL.GetFormApplyByID(formID)[0];
if (rowForm.IsProcIDNull()) {
ViewState["ProcID"] = "";
} else {
ViewState["ProcID"] = rowForm.ProcID;
}
ViewState["OrganizationUnitID"] = rowForm.OrganizationUnitID;
this.FormNoCtl.Text = rowForm.FormNo;
this.ApplyDateCtl.Text = rowForm.SubmitDate.ToShortDateString();
AuthorizationDS.StuffUserRow applicant = new AuthorizationBLL().GetStuffUserById(rowForm.UserID);
this.StuffNameCtl.Text = applicant.StuffName;
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.AttendDateCtl.Text = applicant.AttendDate.ToShortDateString();
this.BeginPeriodCtl.Text = rowFormApply.BeginPeriod.ToString("yyyy-MM");
this.EndPeriodCtl.Text = rowFormApply.EndPeriod.ToString("yyyy-MM");
MasterDataBLL masterBll = new MasterDataBLL();
this.ExpenseSubCategoryCtl.Text = masterBll.GetExpenseSubCateNameById(rowFormApply.ExpenseSubCategoryID);
ERS.CustomerRow customer = masterBll.GetCustomerById(rowFormApply.CustomerID);
this.CustomerNameCtl.Text = customer.CustomerName;
//this.CustomerTypeCtl.Text = masterBll.GetCustomerTypeById(customer.CustomerTypeID).CustomerTypeName;
this.ShopNameCtl.Text = masterBll.GetShopByID(rowFormApply.ShopID).ShopName;
this.PaymentTypeCtl.Text = masterBll.GetPaymentTypeById(rowFormApply.PaymentTypeID).PaymentTypeName;
if (!rowFormApply.IsContractNoNull()) {
this.ContractNoCtl.Text = rowFormApply.ContractNo;
}
this.AmountCtl.Text = rowFormApply.Amount.ToString("N");
if (!rowFormApply.IsRemarkNull()) {
this.RemarkCtl.Text = rowFormApply.Remark;
}
if (!rowFormApply.IsAttachedFileNameNull())
this.UCFileUpload.AttachmentFileName = rowFormApply.AttachedFileName;
if (!rowFormApply.IsRealAttachedFileNameNull())
this.UCFileUpload.RealAttachmentFileName = rowFormApply.RealAttachedFileName;
if (!rowFormApply.IsPromotionBeginDateNull()) {
this.PromotionBeginCtl.Text = rowFormApply.PromotionBeginDate.ToString("yyyy-MM-dd");
}
if (!rowFormApply.IsPromotionEndDateNull()) {
this.PromotionEndCtl.Text = rowFormApply.PromotionEndDate.ToString("yyyy-MM-dd");
}
if (!rowFormApply.IsDeliveryBeginDateNull()) {
this.DeliveryBeginCtl.Text = rowFormApply.DeliveryBeginDate.ToString("yyyy-MM-dd");
}
if (!rowFormApply.IsDeliveryEndDateNull()) {
this.DeliveryEndCtl.Text = rowFormApply.DeliveryEndDate.ToString("yyyy-MM-dd");
}
this.PromotionScopeCtl.Text = masterBll.GetPromotionScopeById(rowFormApply.PromotionScopeID).PromotionScopeName;
this.PromotionTypeCtl.Text = masterBll.GetPromotionTypeById(rowFormApply.PromotionTypeID).PromotionTypeName;
if (!rowFormApply.IsPromotionDescNull()) {
this.PromotionDescCtl.Text = rowFormApply.PromotionDesc;
}
this.ShelfTypeCtl.Text = masterBll.GetShelfTypeById(rowFormApply.ShelfTypeID).ShelfTypeName;
if (!rowFormApply.IsFirstVolumeNull()) {
this.FirstVolumeCtl.Text = rowFormApply.FirstVolume.ToString();
}
if (!rowFormApply.IsSecondVolumeNull()) {
this.SecondVolumeCtl.Text = rowFormApply.SecondVolume.ToString();
}
if (!rowFormApply.IsThirdVolumeNull()) {
this.ThirdVolumeCtl.Text = rowFormApply.ThirdVolume.ToString();
}
if (!rowFormApply.IsAverageVolumeNull()) {
this.AverageVolumeCtl.Text = rowFormApply.AverageVolume.ToString();
}
if (!rowFormApply.IsFormApplyNameNull()) {
this.txtFormApplyName.Text = rowFormApply.FormApplyName;
}
//�鿴Ԥ����Ϣ��ť
this.btnViewBudget.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/ReportManage/SalesFeeByPosition.aspx?ShowDialog=1','', 'dialogWidth:918px;dialogHeight:660px;resizable:yes;')";
//Ԥ����Ϣ
this.CustomerBudgetCtl.Text = rowFormApply.CustomerBudget.ToString("N");
this.CustomerBudgetRemainCtl.Text = rowFormApply.CustomerBudgetRemain.ToString("N");
this.OUBudgetCtl.Text = rowFormApply.OUBudget.ToString("N");
this.OUApprovedAmountCtl.Text = rowFormApply.OUAppovedAmount.ToString("N");
this.OUApprovingAmountCtl.Text = rowFormApply.OUApprovingAmount.ToString("N");
this.OUCompletedAmountCtl.Text = rowFormApply.OUCompletedAmount.ToString("N");
this.OUReimbursedAmountCtl.Text = rowFormApply.OUReimbursedAmount.ToString("N");
this.OUBudgetRemainCtl.Text = rowFormApply.OUBudgetRemain.ToString("N");
this.OUBudgetRateCtl.Text = ((decimal)(rowFormApply.OUBudgetRate * 100)).ToString("N") + "%";
//����ҳ�洦��&��ť����
AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"];
this.ViewState["StuffUserID"] = stuffUser.StuffUserId;
//�Ƿ���ʾ�رհ�ť,���û��ִ����ɵĻ���ô���ܹر�
//.........这里部分代码省略.........
示例5: 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);
MasterDataBLL mdBLL = new MasterDataBLL();
int formID = int.Parse(Request["ObjectId"]);
this.ViewState["ObjectId"] = formID;
FormDS.FormRow rowForm = this.FormSaleBLL.GetFormByID(formID)[0];
FormDS.FormSaleSettlementRow rowFormSettlement = this.FormSaleBLL.GetFormSaleSettlementByID(formID);
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();
MasterData.CustomerRow customer = mdBLL.GetCustomerById(rowFormSettlement.CustomerID)[0];
this.CustomerNameCtl.Text = customer.CustomerName;
this.CustomerChannelCtl.Text = mdBLL.GetCustomerChannelById(customer.CustomerChannelID)[0].CustomerChannelName;
this.CustomerRegionCtl.Text = mdBLL.GetCustomerRegionById(customer.CustomerRegionID).CustomerRegionName;
this.CityCtl.Text = customer.City;
this.BrandCtl.Text = mdBLL.GetBrandById(rowFormSettlement.BrandID)[0].BrandName;
MasterData.ExpenseSubCategoryRow rowExpenseSubCategory = mdBLL.GetExpenseSubCategoryById(rowFormSettlement.ExpenseSubCategoryID);
this.ExpenseCategoryCtl.Text = mdBLL.GetExpenseCategoryById(rowExpenseSubCategory.ExpenseCategoryID).ExpenseCategoryName;
this.ExpenseSubCategoryCtl.Text = rowExpenseSubCategory.ExpenseSubCategoryName;
this.CurrencyCtl.Text = mdBLL.GetCurrencyByID(rowFormSettlement.CurrencyID).CurrencyShortName;
this.RemarkCtl.Text = rowFormSettlement.IsRemarkNull() ? "" : rowFormSettlement.Remark;
if (!rowFormSettlement.IsAttachedFileNameNull())
this.UCSettlementFile.AttachmentFileName = rowFormSettlement.AttachedFileName;
if (!rowFormSettlement.IsRealAttachedFileNameNull())
this.UCSettlementFile.RealAttachmentFileName = rowFormSettlement.RealAttachedFileName;
this.CostCenterCtl.Text = CommonUtility.GetMAACostCenterFullName(rowForm.CostCenterID);
this.PaymentTypeCtl.Text = mdBLL.GetPaymentTypeById(rowFormSettlement.PaymentTypeID).PaymentTypeName;
//历史单据
if (rowForm.IsRejectedFormIDNull()) {
lblRejectFormNo.Text = "无";
} else {
FormDS.FormRow rejectedForm = this.FormSaleBLL.GetFormByID(rowForm.RejectedFormID)[0];
this.lblRejectFormNo.Text = rejectedForm.FormNo;
this.lblRejectFormNo.NavigateUrl = "javascript:window.showModalDialog('" + System.Configuration.ConfigurationManager.AppSettings["WebSiteUrl"] + "/FormSale/SettlementApproval.aspx?ShowDialog=1&ObjectId=" + rejectedForm.FormID + "','', 'dialogWidth:1000px;dialogHeight:750px;resizable:yes;')";
}
//费用合计信息
ApplyAmountRMBCtl.Text = rowFormSettlement.IsApplyAmountRMBNull() ? "" : rowFormSettlement.ApplyAmountRMB.ToString();
ForecastOrderAmountCtl.Text = rowFormSettlement.IsForecastOrderAmountNull() ? "" : rowFormSettlement.ForecastOrderAmount.ToString();
CostBenefitRateCtl.Text = rowFormSettlement.IsCostBenefitRateNull() ? "" : rowFormSettlement.CostBenefitRate.ToString();
AmountRMBCtl.Text = rowFormSettlement.AmountRMB.ToString();
ActualOrderAmountCtl.Text = rowFormSettlement.IsActualOrderAmountNull() ? "" : rowFormSettlement.ActualOrderAmount.ToString();
ActualCostBenefitRateCtl.Text = rowFormSettlement.IsActualCostBenefitRateNull() ? "" : rowFormSettlement.ActualCostBenefitRate.ToString();
//明细
this.odsSKUDetails.SelectParameters["FormSaleSettlementID"].DefaultValue = rowFormSettlement.FormSaleSettlementID.ToString();
this.odsExpenseDetails.SelectParameters["FormSaleSettlementID"].DefaultValue = rowFormSettlement.FormSaleSettlementID.ToString();
//判断是Activity还是NoActivity,如果NoActivity那么需要隐藏
if (rowForm.PageType == (int)SystemEnums.PageType.NoActivitySettlementApply) {
this.FeeSumTR.Visible = false;
this.SKUDiv.Visible = false;
this.gvSKUDetails.Visible = false;
}
//审批页面处理&按钮处理
AuthorizationDS.StuffUserRow stuffUser = (AuthorizationDS.StuffUserRow)Session["StuffUser"];
this.ViewState["StuffUserID"] = stuffUser.StuffUserId;
if (rowForm.InTurnUserIds.Contains("P" + stuffUser.StuffUserId + "P")) {
this.SubmitBtn.Visible = true;
this.cwfAppCheck.IsView = false;
this.ViewState["IsView"] = false;
} else {
this.SubmitBtn.Visible = false;
this.cwfAppCheck.IsView = true;
this.ViewState["IsView"] = true;
}
if (rowForm.StatusID == (int)SystemEnums.FormStatus.Rejected && stuffUser.StuffUserId == rowForm.UserID) {
this.EditBtn.Visible = true;
this.ScrapBtn.Visible = true;
} else {
this.EditBtn.Visible = false;
this.ScrapBtn.Visible = false;
}
//是否显示报销完成按钮
this.CloseBtn.Visible = false;
if ((!rowFormSettlement.IsClose) && rowForm.StatusID == (int)SystemEnums.FormStatus.ApproveCompleted) {
if (stuffUser.StuffUserId == rowForm.UserID || new AuthorizationBLL().GetProxyReimburseByParameter(rowForm.UserID, stuffUser.StuffUserId, rowForm.SubmitDate).Count > 0) {
this.CloseBtn.Visible = true;
}
}
//.........这里部分代码省略.........