void _departmentStockInView_DispatchDepartmentStockIn(object sender, DepartmentStockInEventArgs e) { Department destDept = DepartmentLogic.FindById(e.Department.DepartmentId); if (destDept != null) { GlobalMessage message = (GlobalMessage)GlobalUtility.GetObject("GlobalMessage"); message.PublishMessage(ChannelConstants.DEPT2MAIN_SYNC, "Đang gửi thông tin xuống cửa hàng ..."); ServerServiceClient serverService = new ServerServiceClient(new InstanceContext(this), ClientSetting.ServiceBinding); serverService.MakeRawDepartmentStockIn(destDept, e.DepartmentStockIn); } e.EventResult = "Made Stock-in back"; }