示例#1
0
        protected void SaveButton_Click(object sender, EventArgs e)
        {
            var hourAcco = "7";

            if (Session["sorList"] != null)
            {
                var comList = Session["sorList"] as List <CompanyView>;
                foreach (var item in comList)
                {
                    var comdal   = new CompanyDAL(CONNSTRING);
                    var resComId = comdal.CheckCompanyOwnerByID(item.CompanyID);
                    if (string.IsNullOrEmpty(resComId))
                    {
                        comdal.CreateOwnerCompanyId(item.CompanyID, item.OwnershipAdminID.ToString());
                    }
                    PerformMove(item.CompanyID, hourAcco);
                }
            }
        }