没有批准的就不显示在列表中
列表显示责任人
ALTER TABLE [dbo].[OA_ShebeiWeixiu] ADD ApprovalStatus [int] NULL DEFAULT (0) ;
GO
update [dbo].[OA_ShebeiWeixiu] set ApprovalStatus=(select [ApprovalStatus] from [dbo].[OA_WorkPlan] a where a.Keyid = [OA_ShebeiWeixiu].WeixiuShebeiId )
| | |
| | | public decimal? WeixiuPrice { get; set; } |
| | | public int? Zerenren { get; set; } |
| | | public string ZerenrenName { get; set; } |
| | | public string ShebeiZerenrenName { get; set; } |
| | | public decimal? DanzePrice { get; set; } |
| | | |
| | | public int? WeixiuShebeiId { get; set; } |
| | |
| | | |
| | | //是否付费 1是2否 |
| | | public int? Shifoufufei { get; set; } |
| | | |
| | | |
| | | //维修审批是否通过 1批准2不批准 |
| | | public int? ApprovalStatus { get; set; } |
| | | |
| | | |
| | | public DateTime? CreateTime { get; set; } |
| | |
| | | this.CateName = isChange ? MyConvert.ConvertToString(value) : CateName; |
| | | theValue = this.CateName; |
| | | } |
| | | |
| | | else if ("ShebeiZerenrenName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) |
| | | { |
| | | this.ShebeiZerenrenName = isChange ? MyConvert.ConvertToString(value) : ShebeiZerenrenName; |
| | | theValue = this.ShebeiZerenrenName; |
| | | } |
| | | else if ("ApprovalStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) |
| | | { |
| | | this.ApprovalStatus = isChange ? MyConvert.ConvertToInt32(value) : ApprovalStatus; |
| | | theValue = this.ApprovalStatus; |
| | | } |
| | | |
| | | |
| | | return theValue; |
| | |
| | | new SqlParameter("@Creator", trueModel.Creator) , |
| | | new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime) , |
| | | new SqlParameter("@Operator", trueModel.Operator) , |
| | | new SqlParameter("@ApprovalStatus", trueModel.ApprovalStatus.HasValue?trueModel.ApprovalStatus.Value:0) , |
| | | |
| | | }; |
| | | string sql = "Insert Into OA_ShebeiWeixiu ([MemberId],[ShebeiId],[WeixiuTime],[CateId],[Name],[Anzhuangdidian],[Remark],[WeixiuPrice],[Zerenren],[ZerenrenName],[DanzePrice],[WeixiuShebeiId],[FukuanShebeiId],[FukuanshenqingId],[Shifoufufei],[CreateTime],[Creator],[LastUpdateTime],[Operator])" |
| | | + " Values (@MemberId,@ShebeiId,@WeixiuTime,@CateId,@Name,@Anzhuangdidian,@Remark ,@WeixiuPrice,@Zerenren,@ZerenrenName,@DanzePrice,@WeixiuShebeiId,@FukuanShebeiId,@FukuanshenqingId,@Shifoufufei,@CreateTime,@Creator,@LastUpdateTime,@Operator)"; |
| | | string sql = "Insert Into OA_ShebeiWeixiu ([MemberId],[ShebeiId],[WeixiuTime],[CateId],[Name],[Anzhuangdidian],[Remark],[WeixiuPrice],[Zerenren],[ZerenrenName],[DanzePrice],[WeixiuShebeiId],[FukuanShebeiId],[FukuanshenqingId],[Shifoufufei],[CreateTime],[Creator],[LastUpdateTime],[Operator],[ApprovalStatus])" |
| | | + " Values (@MemberId,@ShebeiId,@WeixiuTime,@CateId,@Name,@Anzhuangdidian,@Remark ,@WeixiuPrice,@Zerenren,@ZerenrenName,@DanzePrice,@WeixiuShebeiId,@FukuanShebeiId,@FukuanshenqingId,@Shifoufufei,@CreateTime,@Creator,@LastUpdateTime,@Operator,@ApprovalStatus)"; |
| | | |
| | | try |
| | | { |
| | |
| | | |
| | | new SqlParameter("@LastUpdateTime", trueModel.LastUpdateTime) , |
| | | new SqlParameter("@Operator", trueModel.Operator) , |
| | | new SqlParameter("@ApprovalStatus", trueModel.ApprovalStatus.HasValue?trueModel.ApprovalStatus.Value:0) , |
| | | }; |
| | | string sql = "Update OA_ShebeiWeixiu Set [MemberId]=@MemberId,[ShebeiId]=@ShebeiId,[WeixiuTime]=@WeixiuTime,[CateId]=@CateId,[Name]=@Name,[Anzhuangdidian]=@Anzhuangdidian,[Remark]=@Remark,[WeixiuPrice]=@WeixiuPrice,[Zerenren]=@Zerenren,[ZerenrenName]=@ZerenrenName,[DanzePrice]=@DanzePrice, [WeixiuShebeiId]=@WeixiuShebeiId,[FukuanShebeiId]=@FukuanShebeiId,[FukuanshenqingId]=@FukuanshenqingId,[Shifoufufei]=@Shifoufufei,[LastUpdateTime]=@LastUpdateTime, [Operator]=@Operator where [Keyid] =@Keyid "; |
| | | string sql = "Update OA_ShebeiWeixiu Set [MemberId]=@MemberId,[ShebeiId]=@ShebeiId,[WeixiuTime]=@WeixiuTime,[CateId]=@CateId,[Name]=@Name,[Anzhuangdidian]=@Anzhuangdidian,[Remark]=@Remark,[WeixiuPrice]=@WeixiuPrice,[Zerenren]=@Zerenren,[ZerenrenName]=@ZerenrenName,[DanzePrice]=@DanzePrice, [WeixiuShebeiId]=@WeixiuShebeiId,[FukuanShebeiId]=@FukuanShebeiId,[FukuanshenqingId]=@FukuanshenqingId,[Shifoufufei]=@Shifoufufei,[LastUpdateTime]=@LastUpdateTime, [Operator]=@Operator,ApprovalStatus=@ApprovalStatus where [Keyid] =@Keyid "; |
| | | |
| | | try |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | string condition = " 1=1 "; |
| | | string condition = " ApprovalStatus=1 "; |
| | | |
| | | if (_MemberId != Guid.Empty) |
| | | condition += " and a.MemberId = '" + _MemberId + "'"; |
| | |
| | | |
| | | |
| | | |
| | | return _dataBase.SelectModelPage<Model.OA_ShebeiWeixiu>(pagination, " a.*,b.Name as CateName ", " OA_ShebeiWeixiu as a left join OA_ShebeiCate as b on a.CateId = b.Keyid left join OA_ShebeiManage as c on a.ShebeiId = c.Keyid ", " a.WeixiuTime DESC", " Keyid desc ", condition); |
| | | return _dataBase.SelectModelPage<Model.OA_ShebeiWeixiu>(pagination, " a.*,b.Name as CateName, c.ZerenrenName as ShebeiZerenrenName ", " OA_ShebeiWeixiu as a left join OA_ShebeiCate as b on a.CateId = b.Keyid left join OA_ShebeiManage as c on a.ShebeiId = c.Keyid ", " a.WeixiuTime DESC", " Keyid desc ", condition); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | oA_ShebeiWeixiu.ShebeiId = this.selShebei.Value.ToInt32(); |
| | | oA_ShebeiWeixiu.WeixiuTime = this.txtWeixiuTime.Value.ToDateTime2(); |
| | | var shebeiManage = oA_ShebeiManageBLL.GetModelByKeyid(oA_ShebeiWeixiu.ShebeiId); |
| | | var ShebeiZerenrenName = ""; |
| | | if (shebeiManage != null) |
| | | { |
| | | oA_ShebeiWeixiu.CateId = shebeiManage.CateId; |
| | | oA_ShebeiWeixiu.Anzhuangdidian = shebeiManage.Anzhuangdidian; |
| | | oA_ShebeiWeixiu.Name = shebeiManage.Name; |
| | | ShebeiZerenrenName = shebeiManage.ZerenrenName; |
| | | } |
| | | oA_ShebeiWeixiu.Remark = this.txtPlanRemark.Value; |
| | | oA_ShebeiWeixiu.WeixiuPrice = this.txtWeixiuPrice.Value.ToDecimal2(); |
| | |
| | | // _SupplierName = oA_Suppliers.Name; |
| | | //} |
| | | |
| | | var _SupplierName = oA_ShebeiWeixiu.Name + "维修"; |
| | | var _SupplierName = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "维修"; |
| | | oA_Fukuanshenqing.SupplierName = _SupplierName; |
| | | var id = _oA_FukuanshenqingBLL.InsertModel(oA_Fukuanshenqing); |
| | | |
| | |
| | | |
| | | m_OA_WorkPlan.Operator = CurrentUser.ShortName; |
| | | |
| | | m_OA_WorkPlan.PlanContent = oA_ShebeiWeixiu.Name+"维修申请"; |
| | | m_OA_WorkPlan.PlanTitle = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "维修申请"; |
| | | m_OA_WorkPlan.PlanDataType = 18; |
| | | m_OA_WorkPlan.PlanMoney = this.txtWeixiuPrice.Value.ToDecimal2(); |
| | | m_OA_WorkPlan.RewardMoney = 0; |
| | | m_OA_WorkPlan.PlanRemark = ""; |
| | | m_OA_WorkPlan.PlanRunTime = DateTime.Now; |
| | | m_OA_WorkPlan.PlanTitle = this.txtPlanRemark.Value+ ".维修日期:"+ this.txtWeixiuTime.Value; |
| | | m_OA_WorkPlan.PlanContent = this.txtPlanRemark.Value+ ".维修日期:"+ this.txtWeixiuTime.Value; |
| | | m_OA_WorkPlan.PlanType = 3; |
| | | m_OA_WorkPlan.LastUpdateTime = nowTime; |
| | | var workid = oA_WorkReminderBll.InserModelAndGetId(m_OA_WorkPlan); |
| | |
| | | JavaScript.MessageBox("已经申请付款!", this); |
| | | return; |
| | | } |
| | | var shebeiManage = oA_ShebeiManageBLL.GetModelByKeyid(oA_ShebeiWeixiu.ShebeiId); |
| | | var ShebeiZerenrenName = ""; |
| | | if (shebeiManage != null) |
| | | { |
| | | ShebeiZerenrenName = shebeiManage.ZerenrenName; |
| | | } |
| | | |
| | | |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | |
| | | // _SupplierName = oA_Suppliers.Name; |
| | | //} |
| | | |
| | | var _SupplierName = oA_ShebeiWeixiu.Name + "维修"; |
| | | var _SupplierName = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "维修"; |
| | | oA_Fukuanshenqing.SupplierName = _SupplierName; |
| | | var id = _oA_FukuanshenqingBLL.InsertModel(oA_Fukuanshenqing); |
| | | |
| | |
| | | |
| | | m_OA_WorkPlan.Operator = CurrentUser.ShortName; |
| | | |
| | | m_OA_WorkPlan.PlanContent = oA_ShebeiWeixiu.Name+ "维修付款申请"; |
| | | m_OA_WorkPlan.PlanTitle = oA_ShebeiWeixiu.Name + "(" + ShebeiZerenrenName + ")" + "维修付款申请"; |
| | | m_OA_WorkPlan.PlanDataType = 19; |
| | | m_OA_WorkPlan.PlanMoney = this.txtWeixiuPrice.Value.ToDecimal2(); |
| | | m_OA_WorkPlan.RewardMoney = 0; |
| | | m_OA_WorkPlan.PlanRemark = ""; |
| | | m_OA_WorkPlan.PlanRunTime = DateTime.Now; |
| | | m_OA_WorkPlan.PlanTitle = this.txtPlanRemark.Value+ ".维修日期:"+ this.txtWeixiuTime.Value; |
| | | m_OA_WorkPlan.PlanContent = this.txtPlanRemark.Value+ ".维修日期:"+ this.txtWeixiuTime.Value; |
| | | m_OA_WorkPlan.PlanType = 3; |
| | | m_OA_WorkPlan.LastUpdateTime = nowTime; |
| | | var workid = oA_WorkReminderBll.InserModelAndGetId(m_OA_WorkPlan); |
| | |
| | | 安装地点 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 设备责任人 |
| | | </th> |
| | | <th style="text-align: center"> |
| | | 维护费用 |
| | | </th> |
| | | |
| | |
| | | <%#Eval("Anzhuangdidian")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("ShebeiZerenrenName")%> |
| | | </td> |
| | | <td style="text-align: center"> |
| | | <%#Eval("WeixiuPrice","{0:F2}")%> |
| | | </td> |
| | | |
| | |
| | | </ItemTemplate> |
| | | <FooterTemplate> |
| | | <tr class="StatisticsMoney"> |
| | | <td colspan="6" class="ali03"> |
| | | <td colspan="7" class="ali03"> |
| | | 当前页统计: |
| | | </td> |
| | | <td class="ali01"> |
| | |
| | | </td> |
| | | </tr> |
| | | <tr class="StatisticsMoney"> |
| | | <td colspan="6" class="ali03"> |
| | | <td colspan="7" class="ali03"> |
| | | 查询项统计: |
| | | </td> |
| | | <td class="ali01"> |
| | |
| | | if (oA_ShebeiWeixiu != null) |
| | | { |
| | | oA_ShebeiWeixiu.Zerenren = this.selZerenren.Value.ToInt32(); |
| | | |
| | | oA_ShebeiWeixiu.ApprovalStatus = 1; |
| | | oA_ShebeiWeixiu.DanzePrice = this.txtDanzePrice.Value.ToDecimal2(); |
| | | oA_ShebeiWeixiuBLL.UpdateModel(oA_ShebeiWeixiu); |
| | | } |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | if (m_OA_WorkPlan.ApprovalStatus == 1 && m_OA_WorkPlan.PlanDataType == 20) |
| | | { |
| | | var oA_WageAward = bll_OA_WageAwardPunishBLL.GetModelByKeyid(m_OA_WorkPlan.PlanComplany.ToInt32().Value); |