本文整理匯總了C#中Addr_OrganizeCityBLL.IsChildOrganizeCity方法的典型用法代碼示例。如果您正苦於以下問題:C# Addr_OrganizeCityBLL.IsChildOrganizeCity方法的具體用法?C# Addr_OrganizeCityBLL.IsChildOrganizeCity怎麽用?C# Addr_OrganizeCityBLL.IsChildOrganizeCity使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Addr_OrganizeCityBLL
的用法示例。
在下文中一共展示了Addr_OrganizeCityBLL.IsChildOrganizeCity方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: BindData
private void BindData(int classfiy)
{
PM_Promotor p = new PM_PromotorBLL((int)ViewState["PromotorID"]).Model;
#region 獲取當前導購標準薪資、保底薪資、導購管理費
if ((int)ViewState["PromotorID"] > 0)
{
decimal basepay = 0, minumumwage = 0, rtmanagecost = 0;
new PM_PromotorBLL((int)ViewState["PromotorID"]).GetStdPay(out basepay, out minumumwage, out rtmanagecost);
ViewState["BasePay"] = basepay;
ViewState["MinumumWage"] = minumumwage;
ViewState["RTManageCost"] = rtmanagecost;
}
#endregion
PM_PromotorSalary m = new PM_PromotorSalary();
m.Promotor = (int)ViewState["PromotorID"];
m.State = 1;
m.InsertStaff = (int)Session["UserID"];
m.RTManageCost = (decimal)ViewState["RTManageCost"];
ddl_BasePayMode.Enabled = false;
if (classfiy == 1 || classfiy == 2)
{
m.BasePayMode = 3;
}
else
{
m.SeniorityPayMode = 1;
ddl_BankType.Items[3].Enabled = false;
#region 抓取固定底薪標準
decimal basepay = (decimal)ViewState["BasePay"];
m.BasePay = basepay;
#endregion
Addr_OrganizeCityBLL _bll = new Addr_OrganizeCityBLL(p.OrganizeCity);
if (_bll.IsChildOrganizeCity(7))//判斷是否為華南區
{
ddl_BasePayMode.Items.Remove(new ListItem("浮動底薪(非華南)", "4"));
ddl_BasePayMode.Items.Remove(new ListItem("兼職底薪", "3"));
ddl_BasePayMode.Enabled = true;
ddl_SalesType.Enabled = true;
txt_BaseFeeRate.Enabled = true;
}
else
{
m.BasePayMode = 1;
}
}
UC_DetailView1.BindData(m);
if (m.RTManageCost > 0 && (decimal)ViewState["RTManageCost"] == m.RTManageCost)
{
TextBox tbx = (TextBox)UC_DetailView1.FindControl("PM_PromotorSalary_RTManageCost");
if (tbx != null) tbx.Enabled = false;
}
if (m.State < 3)
{
#region 兼職導購的限定
try
{
if (classfiy != 1 && classfiy != 2) //非專職、非流導,認為是兼職導購
{
DateTime Birthday;
if (DateTime.TryParse(p["Birthday"], out Birthday) && Birthday.AddYears(49) < DateTime.Now)
{
foreach (ListItem item in ddl_InsuranceMode.Items)
{
if (item.Value != "5" && item.Value != "8" && item.Value != "0")
{
item.Enabled = false;
}
}
}
SetControlsEnable(true);
}
else
{
SetControlsEnable(false);
}
}
catch { }
#endregion
ddl_BasePaySubsidyMode_SelectedIndexChanged(null, null);
ddl_InsuranceMode_SelectedIndexChanged(null, null);
ddl_MinimumWageMode_SelectedIndexChanged(null, null);
ddl_BankType_SelectedIndexChanged(null, null);
}
}