public static bool modifAppliInfo(ApplyInfo apply) { List <ApplyInfo> applyInfos = getAllApplyInfo(); for (int i = 0; i < applyInfos.Count(); i++) { if (applyInfos[i].serialNumber.Equals(apply.serialNumber)) { applyInfos[i] = apply; break; } } List <string> datas = new List <string>(); foreach (ApplyInfo a in applyInfos) { datas.Add(a.ToString()); } try { FileTools.writeFile(Global.applyInfoPath, datas); return(true); } catch (Exception) { return(false); } }
public void SetDetailInfoSub_EnemyInfo(ApplyInfo Info) { if (Info == null) { return; } }
/// <summary> /// 渠道发起售后服务请求(yanxuan.order.refund.apply) /// </summary> public static ResultDTO <OrderRefundApplyResponse> ApplyRefundOrder(ApplyInfo info) { try { string postData = GenerateParameter("yanxuan.order.refund.apply", new Dictionary <string, string> { { "applyInfo", JsonConvert.SerializeObject(info) } }); string jsonstr = WebRequestHelper.SendPostInfo(ApiUrl, postData); LogHelper.Info("YXSV.ApplyRefundOrder 渠道发起售后服务请求,Request: " + postData + ",Response: " + jsonstr); var result = JsonConvert.DeserializeObject <YXResult <string> >(jsonstr); if (result.Successed) { return(new ResultDTO <OrderRefundApplyResponse> { isSuccess = true, Data = JsonConvert.DeserializeObject <OrderRefundApplyResponse>(result.Result) }); } else { LogHelper.Error("YXSV.ApplyRefundOrder 渠道发起售后服务请求失败,Request: " + postData + ",Response: " + jsonstr); return(new ResultDTO <OrderRefundApplyResponse> { isSuccess = false, ResultCode = 1, Message = result.Msg }); } } catch (Exception ex) { LogHelper.Error("YXSV.ApplyRefundOrder 渠道发起售后服务请求异常,Request: " + JsonConvert.SerializeObject(info), ex); return(new ResultDTO <OrderRefundApplyResponse> { isSuccess = false, ResultCode = 1, Message = "请求失败,请稍后重试。" }); } }
public void ClickMemberStart(IUIObject obj) { byte b; if (this.m_iCurSelectIndex < 0) { b = this.GetEmptyRaidBattlePos(); } else { b = (byte)this.m_iCurSelectIndex; } ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos(b); if (applyInfoFromRaidBattlePos != null) { b = this.GetEmptyRaidBattlePos(); } if (b < 0 || b >= 9) { return; } SoldierBatch.SOLDIER_BATCH_MODE = eSOLDIER_BATCH_MODE.MODE_GUILDWAR_MAKEUP; SoldierBatch.GuildWarRaidUnique = this.m_iRaidUnique; SoldierBatch.GuildWarRaidBattlePos = b; FacadeHandler.PushStage(Scene.Type.SOLDIER_BATCH); }
/// <summary> /// 获取所有活跃订单 /// </summary> /// <returns></returns> public List <ApplyInfo> GetAllInfo(string pid) { string sqltxt = "Select * From ApplyInfo Where ParkID=@ParkID"; SqlParameter para = new SqlParameter("@ParkID", pid); List <ApplyInfo> list = new List <ApplyInfo>(); ApplyInfo apply; SqlDataReader reader = SqlHelper.ExecuteReader( SqlHelper.ConnectionString2, CommandType.Text, sqltxt, para); while (reader.Read()) { apply = new ApplyInfo(); apply.CarNum = reader["CarNum"].ToString(); apply.HID = (int)reader["HID"]; apply.ParkID = (int)reader["ParkID"]; apply.ParkPosintion = reader["ParkPosintion"].ToString(); apply.State = (int)reader["State"]; list.Add(apply); } return(list); }
private void btnremove_Click(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("是否删除该数据?", "是否删除该数据", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { if ((TabType)tabs.SelectedIndex == TabType.apply && dataGridApply.SelectedRows.Count > 0) { string applyid = dataGridApply.SelectedRows[0].Cells["申请ID"].Value.ToString(); ApplyInfo.deleteApplyInfo(applyid); bindApplyInfo(); } if ((TabType)tabs.SelectedIndex == TabType.approval && dataGridApproval.SelectedRows.Count > 0) { string applyid = dataGridApproval.SelectedRows[0].Cells["申请ID"].Value.ToString(); ApprovalRecord.deleteApprovalInfo(applyid); bindApprovalInfo(); } if ((TabType)tabs.SelectedIndex == TabType.user && dataGridUser.SelectedRows.Count > 0) { string userid = dataGridUser.SelectedRows[0].Cells["ID"].Value.ToString(); UserInfo.deleteUserInfo(userid); UserRelation.deleteUserFrelationInfo(userid); bindUserInfo(); } } }
public int Delete(int id) { ApplyInfo InfoToDelete = context.ApplyInfoes.SingleOrDefault(d => d.ApplyId == id); context.ApplyInfoes.Remove(InfoToDelete); return(context.SaveChanges()); }
public IHttpActionResult Post([FromBody] ApplyInfo info) { this.repo.Insert(info); string uri = Url.Link("GetApplyById", new { id = info.ApplyId }); return(Created(uri, info)); }
public int Update(ApplyInfo info) { ApplyInfo InfoToUpdate = context.ApplyInfoes.SingleOrDefault(d => d.ApplyId == info.ApplyId); //updatea code return(context.SaveChanges()); }
public void SetDetailInfoSub_RaidMember(ApplyInfo Info) { if (Info == null) { return; } }
/// <summary> /// 命令执行 /// </summary> /// <param name="context"></param> public override void Execute(DataContext context) { byte[] cmdData = context.CmdData; if (cmdData.Length == 0) { context.Flush(RespondCode.CmdDataLack); return; } ApplyForm form = cmdData.ProtoBufDeserialize <ApplyForm>(); if (Compiled.Debug) { form.Debug("=== Extend.ApplySubmit 请求数据 ==="); } UserCacheInfo userCache = UserBiz.ReadUserCacheInfo(context.UserId); ApplyInfo applyInfo = new ApplyInfo { UserId = context.UserId, SchoolId = userCache.UserSite, UserName = form.Name ?? string.Empty, Telphone = form.Telphone ?? string.Empty, AreaCity = null == form.City ? string.Empty : form.City.ToString(), CourseId = form.CourseId, SourceAd = form.SourceAd, Comment = string.Empty, CreateDate = DateTime.Now }; if (string.IsNullOrEmpty(applyInfo.UserName) || string.IsNullOrEmpty(applyInfo.Telphone) || string.IsNullOrEmpty(applyInfo.AreaCity)) { context.Flush(RespondCode.DataInvalid); return; } ExtendBiz.SubmitApply(applyInfo); if (applyInfo.Id < 0) { context.Flush(RespondCode.ExecError); return; } StringSingle result = new StringSingle(); if (applyInfo.Id > 0) { result.Data = "报名成功!请保持报名电话畅通,我们将在一个工作日内和您电话联系!"; } else { result.Data = "您的报名信息已在处理中,请保持报名电话畅通,我们将在一个工作日内和您电话联系!"; } context.Flush <StringSingle>(result); }
private void Apply_Click(object sender, RoutedEventArgs e) { bool Restart = false, CloseDlg = false, Rerender = false, ForceRestart = false; for (int i = 0; Category.Length > i; i++) { ApplyInfo ai = Category[i].Apply(); if (ai.ForceRestartApp) { ForceRestart = true; } if (ai.RestartApp) { Restart = true; } if (ai.CloseDialog) { CloseDlg = true; } if (ai.RerenderFile) { Rerender = true; } } cnf.Save(cnf.Current.Path[Enums.Path.SettingFile]); if (ForceRestart) { RestartApp(); } if (Restart) { if (ClearUC.Dialogs.Dialog.ShowMessageBox(ClearUC.Dialogs.Dialog.Buttons.YesNo, Localize.Get("RESTART_T"), Localize.Get("RESTART_M"), false) == ClearUC.Dialogs.Dialog.ClickedButton.Yes) { RestartApp(); } } if (CloseDlg) { Close(); } if (Rerender) { MW.ReRenderFile(true, true); } }
/// <summary> /// 提交报名信息 /// </summary> /// <param name="apply"></param> public static void SubmitApply(ApplyInfo apply) { using (DbCommander cmd = new DbCommander(DbConn.WriteDb, "SP_Extend_SubmitUserApply", CommandType.StoredProcedure)) { cmd.AddInputParameters( "UserId, UserName, Telphone, AreaCity, SchoolId, CourseId, SourceAd, CreateDate, Comment", apply.UserId, apply.UserName, apply.Telphone, apply.AreaCity, apply.SchoolId, apply.CourseId, apply.SourceAd, apply.CreateDate, apply.Comment ); apply.Id = Convert.ToInt32(cmd.ExecuteScalar()); } }
public void ChangeRaidBattlePos(byte iChangeCurSelectIndex, byte iChangeOldSelectIndex) { ApplyInfo applyInfoFromMilitaryID = this.GetApplyInfoFromMilitaryID(this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex]); GUILDWAR_APPLY_MILITARY_DETAIL_INFO gUILDWAR_APPLY_MILITARY_DETAIL_INFO = null; ApplyInfo applyInfoFromMilitaryID2 = this.GetApplyInfoFromMilitaryID(this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex]); GUILDWAR_APPLY_MILITARY_DETAIL_INFO gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 = null; long num = this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex]; this.m_i64ChangeMilitaryID[this.m_iChangeCurSelectIndex] = this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex]; this.m_i64ChangeMilitaryID[(int)iChangeOldSelectIndex] = num; if (applyInfoFromMilitaryID != null) { gUILDWAR_APPLY_MILITARY_DETAIL_INFO = applyInfoFromMilitaryID.GetDetailInfo(0); if (applyInfoFromMilitaryID.GetLeader() == 1) { this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = true; } else { this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = false; } } if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO != null) { this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO, this.m_itAllySelectSolSmall[(int)iChangeOldSelectIndex]); } else { this.m_itAllySelectSolSmall[(int)iChangeOldSelectIndex].ClearData(); this.m_dtAllyLeaderSmall[(int)iChangeOldSelectIndex].Visible = false; } if (applyInfoFromMilitaryID2 != null) { gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 = applyInfoFromMilitaryID2.GetDetailInfo(0); if (applyInfoFromMilitaryID2.GetLeader() == 1) { this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = true; } else { this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = false; } } if (gUILDWAR_APPLY_MILITARY_DETAIL_INFO2 != null) { this.SetSolImage(gUILDWAR_APPLY_MILITARY_DETAIL_INFO2, this.m_itAllySelectSolSmall[this.m_iChangeCurSelectIndex]); } else { this.m_itAllySelectSolSmall[this.m_iChangeCurSelectIndex].ClearData(); this.m_dtAllyLeaderSmall[this.m_iChangeCurSelectIndex].Visible = false; } }
/// <summary> /// 返回true /// </summary> /// <param name="apply"></param> /// <returns></returns> public bool CreateOrder(ApplyInfo apply) { int e = new ApplyInfoDAL().CreateOrder(apply); //e!=1 保存失败 if (e != 1) { return(true); } return(false); }
public static ApplyInfo buildApplyInfo(string[] lines) { ApplyInfo apply = new ApplyInfo(); apply.serialNumber = lines[0]; apply.ID = lines[1]; apply.number = int.Parse(lines[2]); apply.applyUserID = lines[3]; apply.date = lines[4]; apply.status = int.Parse(lines[5]); return(apply); }
/// <summary> /// 资源更新器轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> public void Update(float elapseSeconds, float realElapseSeconds) { if (m_ApplyingResourcePackStream != null) { while (m_ApplyWaitingInfo.Count > 0) { ApplyInfo applyInfo = m_ApplyWaitingInfo[0]; m_ApplyWaitingInfo.RemoveAt(0); if (ApplyResource(applyInfo)) { return; } } Array.Clear(m_CachedBytes, 0, CachedBytesLength); string resourcePackPath = m_ApplyingResourcePackPath; m_ApplyingResourcePackPath = null; m_ApplyingResourcePackStream.Dispose(); m_ApplyingResourcePackStream = null; if (ResourceApplyComplete != null) { ResourceApplyComplete(resourcePackPath, !m_FailureFlag, m_UpdateCandidateInfo.Count <= 0); } } if (m_UpdateWaitingInfo.Count > 0) { if (m_DownloadManager.FreeAgentCount > 0) { UpdateInfo updateInfo = m_UpdateWaitingInfo[0]; m_UpdateWaitingInfo.RemoveAt(0); string resourceFullNameWithCrc32 = updateInfo.ResourceName.Variant != null?Utility.Text.Format("{0}.{1}.{2:x8}.{3}", updateInfo.ResourceName.Name, updateInfo.ResourceName.Variant, updateInfo.HashCode, DefaultExtension) : Utility.Text.Format("{0}.{1:x8}.{2}", updateInfo.ResourceName.Name, updateInfo.HashCode, DefaultExtension); m_DownloadManager.AddDownload(updateInfo.ResourcePath, Utility.Path.GetRemotePath(Path.Combine(m_ResourceManager.m_UpdatePrefixUri, resourceFullNameWithCrc32)), updateInfo); m_UpdatingCount++; } return; } if (m_UpdatingResourceGroup != null && m_UpdatingCount <= 0) { ResourceGroup updatingResourceGroup = m_UpdatingResourceGroup; m_UpdatingResourceGroup = null; if (ResourceUpdateComplete != null) { ResourceUpdateComplete(updatingResourceGroup, !m_FailureFlag, m_UpdateCandidateInfo.Count <= 0); } return; } }
private void HandleApplyUser(ApplyInfo info, long userId, long uidGroup = 0) { if (info.Type == 0) { //好友申请 AddFriend(userId, info.UserId, uidGroup); } if (info.Type == 1) { //群组申请 AddGroupUser(info.GroupId, info.UserId); } }
public IHttpActionResult get(int id) { ApplyInfo info = this.repo.Get(id); if (info == null) { return(StatusCode(HttpStatusCode.NoContent)); } else { return(Ok(info)); } }
public static bool AddApplyInfo(ApplyInfo apply) { try { apply.serialNumber = IDGenerate.generateSerialNumber(); apply.status = 0; FileTools.insertOneLineData(Global.applyInfoPath, apply.ToString()); return(true); } catch (Exception) { return(false); } }
public void ChangeMode(NewGuildWarDetailInfoDlg.eMODE eMode) { this.m_iChangeCurSelectIndex = -1; this.m_iChangeOldSelectIndex = -1; for (int i = 0; i < 9; i++) { this.m_i64ChangeMilitaryID[i] = 0L; } if (eMode == NewGuildWarDetailInfoDlg.eMODE.eMODE_NORMAL) { this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = true; this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible = true; this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = false; this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = false; this.m_btLeaderCancel.Visible = true; for (int i = 0; i < 9; i++) { this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall)); this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos)); } this.SetDetailInfoSub(this.m_iCurSelectIndex); } else { this.m_dtAllySelectImage[this.m_iCurSelectIndex].Visible = false; this.m_itAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false; this.m_btAllySelectSolLarge[this.m_iCurSelectIndex].Visible = false; this.m_dtAllyLeaderLarge[this.m_iCurSelectIndex].Visible = false; this.m_itAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true; this.m_btAllySelectSolSmall[this.m_iCurSelectIndex].Visible = true; ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)this.m_iCurSelectIndex); if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetLeader() == 1) { this.m_dtAllyLeaderSmall[this.m_iCurSelectIndex].Visible = true; } this.m_btLeaderCancel.Visible = false; for (int i = 0; i < 9; i++) { this.m_btAllySelectSolSmall[i].RemoveValueChangedDelegate(new EZValueChangedDelegate(this.ClickSelectAllyInfoSmall)); this.m_btAllySelectSolSmall[i].AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickChangeRaidBattlePos)); applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)i); if (applyInfoFromRaidBattlePos != null) { this.m_i64ChangeMilitaryID[i] = applyInfoFromRaidBattlePos.GetMilitaryID(); } } } }
/// <summary> /// 资源更新器轮询。 /// </summary> /// <param name="elapseSeconds">逻辑流逝时间,以秒为单位。</param> /// <param name="realElapseSeconds">真实流逝时间,以秒为单位。</param> public void Update(float elapseSeconds, float realElapseSeconds) { if (m_ApplyingResourcePackStream != null) { while (m_ApplyWaitingInfo.Count > 0) { ApplyInfo applyInfo = m_ApplyWaitingInfo[0]; m_ApplyWaitingInfo.RemoveAt(0); if (ApplyResource(applyInfo)) { return; } } Array.Clear(m_CachedBytes, 0, CachedBytesLength); string resourcePackPath = m_ApplyingResourcePackPath; m_ApplyingResourcePackPath = null; m_ApplyingResourcePackStream.Dispose(); m_ApplyingResourcePackStream = null; if (ResourceApplyComplete != null) { ResourceApplyComplete(resourcePackPath, !m_FailureFlag); } if (m_UpdateCandidateInfo.Count <= 0 && ResourceUpdateAllComplete != null) { ResourceUpdateAllComplete(); } return; } if (m_UpdateWaitingInfo.Count > 0) { int freeCount = m_DownloadManager.FreeAgentCount - m_DownloadManager.WaitingTaskCount; if (freeCount > 0) { for (int i = 0, count = 0; i < m_UpdateWaitingInfo.Count && count < freeCount; i++) { if (DownloadResource(m_UpdateWaitingInfo[i])) { count++; } } } return; } }
public ResultModel addApply([FromBody] ApplyInfo apply) { ResultModel res = new ResultModel(); if (GoodsService.AddApplyInfo(apply)) { res.status = "200"; res.insert("serialNumber", apply.serialNumber); } else { res.status = "500"; } return(res); }
public ResultModel passApply([FromBody] ApplyInfo apply) { ResultModel res = new ResultModel(); if (GoodsService.updateApply(apply.serialNumber, apply.ID, apply.number, apply.status)) { res.status = "200"; } else { res.status = "500"; res.insert("msg", "库存不够"); } return(res); }
public bool IsChangeRaidBattlePos() { for (int i = 0; i < 9; i++) { ApplyInfo applyInfoFromRaidBattlePos = this.GetApplyInfoFromRaidBattlePos((byte)i); if (applyInfoFromRaidBattlePos == null && this.m_i64ChangeMilitaryID[i] > 0L) { return(true); } if (applyInfoFromRaidBattlePos != null && applyInfoFromRaidBattlePos.GetMilitaryID() != this.m_i64ChangeMilitaryID[i]) { return(true); } } return(false); }
/// <summary> /// 生成活跃订单 /// </summary> /// <param name="apply"></param> /// <returns></returns> public int CreateOrder(ApplyInfo apply) { SqlParameter[] paras = new SqlParameter[5]; paras[0] = new SqlParameter("HID", apply.HID); paras[1] = new SqlParameter("CarNum", apply.CarNum); paras[2] = new SqlParameter("ParkID", apply.ParkID); paras[3] = new SqlParameter("ParkPosintion", apply.ParkPosintion); paras[4] = new SqlParameter("State", apply.State); string sqltxt = "Insert into ApplyInfo Values(@HID,@CarNum,@ParkID,@ParkPosintion,@State)"; int e = SqlHelper.ExecuteNonQuery( WebConfigurationManager.ConnectionStrings["SqlConnectionString1"].ToString(), CommandType.Text, sqltxt, paras); return(e); }
/// <summary> /// 修改申请表并插入审批记录 /// </summary> /// <param name="approve_status">审批状态</param> /// <param name="reason">拒绝原因</param> private void ChangeApproveStatus(string approve_status, string reason = "") { applyinfo_grid.SelectedRows[0].Cells["apply_status"].Value = approve_status; applyinfo_grid.SelectedRows[0].Cells["reject_reason"].Value = reason; string list_id = applyinfo_grid.SelectedRows[0].Cells["list_id"].Value.ToString(); btn_approve.Enabled = false; btn_reject.Enabled = false; string applyid = applyinfo_grid.SelectedRows[0].Cells["apply_id"].Value.ToString(); ApplyInfo apply = ApplyInfo.getApplyInfo(applyid); if (apply != null) { ApprovalRecord approval = new ApprovalRecord(); approval.approvalStatus = apply.applyStatus = approve_status; approval.approvalContent = apply.rejectReason = reason; approval.approvalUserId = apply.lastApprovalUserId = currentUser.UserId; approval.ApprovalDate = apply.lastApprovalDate = DateTime.Now.ToString(); approval.applyId = apply.applyId; approval.ApprovalUserType = currentUser.UserType; approval.applyUserId = apply.applyUserId; if (!approve_status.Contains("拒绝")) { ApplyList list = new ApplyList(); list.insertUserId = apply.applyUserId; list.insertDate = DateTime.Now.ToString(); list.expirationDate = DateTime.Now.AddMonths(3).ToString(); list.ListId = applyinfo_grid.SelectedRows[0].Cells["list_id"].Value.ToString(); HandleApplyList(list); } if (ApplyInfo.updateApplyInfo(apply) > 0 && ApprovalRecord.addApprovalInfo(approval) > 0) { bindApplyGrid(); MessageBox.Show("操作成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("操作失败,请重试!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }
public ActionResult Apply(int id) { if (Session["tutor"] == "True") { ApplyInfo info = new ApplyInfo(); info.PostId = id; info.TutorEmail = Session["UserEmail"].ToString(); IApplyInfoRepo repo = new ApplyInfoRepo(); repo.Insert(info); TempData["Apply"] = "You succesfully Applied for this post !"; IPostRepo Prepo = new PostRepo(); List <Post> postList = Prepo.GetAll(); return(View(postList)); } else { TempData["Welcome"] = "You need to be looged in to Apply!"; return(RedirectToAction("Index", "Login")); } }
/// <summary> /// bind 申请信息列表 /// </summary> private void bindApplyGrid() { try { DataTable dt = ApplyInfo.getApplyInfoDT(currentUser.UserId); group_applyinfo.Text = "申请详细信息 (" + dt.Rows.Count + ")"; applyInfo = dt; applyinfo_grid.DataSource = dt; bindApplyYearMonth(); bindApplyStatus(); bindApplyType(); dataGridSetting(); lbexport_status.Text = "注:最后刷新申请数据时间:" + DateTime.Now.ToString(); } catch { lbexport_status.Text = "申请详细信息列表加载失败!请刷新"; } }
public static List <ApplyInfo> getAllApplyInfo() { List <Goods> goods = GetAllGoods(); Dictionary <string, string> map = new Dictionary <string, string>(); foreach (Goods g in goods) { map[g.ID] = g.name; } List <string[]> list = FileTools.readFile(Global.applyInfoPath); List <ApplyInfo> applyInfos = new List <ApplyInfo>(); foreach (string[] lines in list) { ApplyInfo apply = Builder.buildApplyInfo(lines); apply.name = map[apply.ID]; applyInfos.Add(apply); } applyInfos.Reverse(); return(applyInfos); }