Exemplo n.º 1
0
        public void SettlementGroupSave(SettlementGroupDto dto, string userId)
        {
            SqlParameter[] para = new SqlParameter[] { new SqlParameter("@Id", dto.GroupId),
                                                       new SqlParameter("@ProjectId", dto.ProjectId),
                                                       new SqlParameter("@GroupName", dto.GroupName),
                                                       new SqlParameter("@UserId", userId) };

            db.Database.ExecuteSqlCommand("EXEC up_Settlement_Group_S @Id,@ProjectId,@GroupName,@UserId", para);
        }
Exemplo n.º 2
0
        public ActionResult SettlementGroupSave(string SettlementGroupId, string SettlementGroupName, string projectId)
        {
            if (SettlementGroupId == null)
            {
                SettlementGroupId = "";
            }

            SettlementGroupDto group = new SettlementGroupDto();

            group.GroupId   = SettlementGroupId;
            group.GroupName = SettlementGroupName;
            group.ProjectId = projectId;
            service.SettlementGroupSave(group, UserInfo.UserId);

            return(Json(""));
        }