Example #1
0
        public MDepartment ToMDepartment()
        {
            MDepartment department = new MDepartment();

            department.Id        = this.Id;
            department.Name      = this.Name;
            department.ShortCall = this.ShortCall;

            department.IsBoundary = (this.CanBoundary == 1) ? "是" : "否";
            department.IsInland   = (this.CanInland == 1) ? "是" : "否";

            return(department);
        }
Example #2
0
        public MDepartment ToMDepartment()
        {
            MDepartment department = new MDepartment();
            department.Id = this.Id;
            department.Name = this.Name;
            department.ShortCall = this.ShortCall;

            department.IsBoundary = (this.CanBoundary == 1) ? "是" : "否";
            department.IsInland = (this.CanInland == 1) ? "是" : "否";
            department.IsEmergency = (this.CanEmergency == 1) ? "是" : "否";
            department.IsRegular = (this.CanRegular == 1) ? "是" : "否";

            return department;
        }