日期:2014-05-17 浏览次数:20409 次
[HttpPost]
public ActionResult AffairsMedical(FormCollection from)
{
var customer = _workContext.CurrentCustomer;
string company = customer.GetAttribute<string>(SystemCustomerAttributeNames.Company);
if (!string.IsNullOrEmpty(company) && company.IndexOf("-") > 0)
{
company = company.Substring(0, company.IndexOf("-"));
}
List<InsSupplementaryMedical> listIE = _premiumService.GetListSupplementaryMedical(company);
//Hr 合并
if (customer.CompanyID == customer.AreaId)
{
List<Organization> listO = _organization.GetListOrganizationBySuperiorsId((int)customer.CompanyID);
List<InsAffairs> listIA = _premiumService.GetAffairs(company, "补充医疗险", 1, 0);
if (listO.Count == listIA.Count)
{
if (listIA.Count > 1)
{
InsAffairs model = new InsAffairs();
model.CompanyName = company;
model.CreatedName = customer.FullName;
model.InsuranceName = "补充医疗险";
model.CreatedTime = DateTime.Now;
model.ApplicationYear = DateTime.Now.Year - 1;
model.Status = 1;
&nb