本文整理汇总了C#中Org_StaffBLL.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Org_StaffBLL.ToString方法的具体用法?C# Org_StaffBLL.ToString怎么用?C# Org_StaffBLL.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Org_StaffBLL
的用法示例。
在下文中一共展示了Org_StaffBLL.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindRelateActivity
private void BindRelateActivity()
{
DateTime JournalDate = DateTime.Parse(tbx_begindate.Text);
int OrganizeCity = new Org_StaffBLL((int)Session["UserID"], true).Model.OrganizeCity;
string ConditionStr = "PlanBeginDate BETWEEN '" + JournalDate.AddDays(-15).ToString("yyyy-MM-dd") + "' AND '"
+ JournalDate.AddDays(15).ToString("yyyy-MM-dd") + "' ";
if (OrganizeCity != 1)
{
Addr_OrganizeCityBLL orgcity = new Addr_OrganizeCityBLL(OrganizeCity, true);
string orgcitys = orgcity.GetAllChildNodeIDs();
if (orgcitys != "") orgcitys += ",";
orgcitys += OrganizeCity.ToString();
if (orgcitys != "") ConditionStr += " AND OrganizeCity IN (" + orgcitys + ") ";
}
//if(ddl_RelateActivity!=null)
//{
//ddl_RelateActivity.DataSource = CAT_ActivityBLL.GetModelList(ConditionStr);
//ddl_RelateActivity.DataBind();
//ddl_RelateActivity.Items.Insert(0, new ListItem("请选择您参与举办的活动...", "0"));
//ddl_RelateActivity_SelectedIndexChanged(null, null);
//}
}
示例2: BindData
private void BindData()
{
FNA_BudgetExtraApply m = new FNA_BudgetExtraApplyBLL((int)ViewState["ID"]).Model;
if (m != null)
{
pl_detail.BindData(m);
if (m.ApproveTask > 0 || m.ApproveFlag == 1 || m.InsertStaff != (int)Session["UserID"])
{
lb_ApproveAmount.Text = (m.ExtraAmount - m.AdjustAmount).ToString("0.##");
pl_detail.SetControlsEnable(false);
bt_OK.Visible = false;
bt_Submit.Visible = false;
//允许调整审批金额
if (m.ApproveTask > 0 && m.ApproveFlag == 2 &&
Request.QueryString["Decision"] != null && Request.QueryString["Decision"] == "Y")
{
TextBox tbx_AdjustAmount = (TextBox)pl_detail.FindControl("FNA_BudgetExtraApply_AdjustAmount");
tbx_AdjustAmount.Enabled = true;
bt_SaveAdjust.Visible = true;
}
}
if (!string.IsNullOrEmpty(m.ApproveTask.ToString()) && m.ApproveTask != 0)
{
bt_Submit.Visible = false;
}
if (m.ApproveFlag == 2)
{
tbl_BudgetInfo.Visible = true;
BindBudget(m.AccountMonth, m.OrganizeCity, m.FeeType);
}
#region 获取当月该费用类型累计已批复扩增金额
//lb_SumExtraInfo.Text = new Addr_OrganizeCityBLL(m.OrganizeCity).Model.Name +
// ":<b><font color=red>" + FNA_BudgetExtraApplyBLL.GetExtraAmount(m.AccountMonth, m.OrganizeCity, m.FeeType, false).ToString("0.##") + "</b></font> ";
//int staffcity = new Org_StaffBLL((int)Session["UserID"]).Model.OrganizeCity;
//if (staffcity == 0) staffcity = 1;
//if (staffcity != 1)
//{
// staffcity = TreeTableBLL.GetSuperIDByLevel("MCS_SYS.dbo.Addr_OrganizeCity", m.OrganizeCity, new Addr_OrganizeCityBLL(staffcity).Model.Level);
//}
//lb_SumExtraInfo.Text += new Addr_OrganizeCityBLL(staffcity).Model.Name +
// ":<b><font color=red>" + FNA_BudgetExtraApplyBLL.GetExtraAmount(m.AccountMonth, staffcity, m.FeeType, true).ToString("0.##") + "</b></font>";
#endregion
#region 显示各扩增类型已批复扩增金额
DropDownList ddl_ExtraType = (DropDownList)pl_detail.FindControl("FNA_BudgetExtraApply_ExtraType");
foreach (ListItem item in ddl_ExtraType.Items)
{
if (item .Value!="0")
lb_SumExtraInfo1.Text += item.Text + "总计:<b><font color=red>" + FNA_BudgetExtraApplyBLL.GetModelList("").Where(p => p.ApproveFlag == 1 && p.AccountMonth == m.AccountMonth && p.OrganizeCity == m.OrganizeCity && p.FeeType == m.FeeType && p["ExtraType"] == item.Value).Select(p => p.ExtraAmount - p.AdjustAmount).Sum().ToString() + "</b></font> ";
}
int staffcity = new Org_StaffBLL((int)Session["UserID"]).Model.OrganizeCity;
if (staffcity == 0) staffcity = 1;
if (staffcity != 1)
staffcity = TreeTableBLL.GetSuperIDByLevel("MCS_SYS.dbo.Addr_OrganizeCity", m.OrganizeCity, new Addr_OrganizeCityBLL(staffcity).Model.Level);
foreach (ListItem item in ddl_ExtraType.Items)
{
if (item.Value != "0")
lb_SumExtraInfo2.Text += item.Text + "总计:<b><font color=red>" + FNA_BudgetExtraApplyBLL.GetModelList(" MCS_SYS.dbo.UF_IsChildOrganizeCity(" + staffcity.ToString() + ",OrganizeCity)=0").Where(p => p.ApproveFlag == 1 && p.AccountMonth == m.AccountMonth && p.OrganizeCity == m.OrganizeCity && p.FeeType == m.FeeType && p["ExtraType"] == item.Value).Select(p => p.ExtraAmount - p.AdjustAmount).Sum().ToString() + "</b></font> ";
}
#endregion
}
}