protected void GVManager_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", dataRowView["PARecordID"].ToString(), "','", dataRowView["IsHaveDo"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[2].Text = BooksCommonClass.GetUserName(dataRowView["ApplyMan"].ToString()); string a; if ((a = dataRowView["IsHaveDo"].ToString()) != null) { if (a == "" || a == "0") { e.Row.Cells[3].Text = "未办理"; return; } if (!(a == "1")) { return; } e.Row.Cells[3].Text = "已办理"; } } }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new object[] { "OnRecord(this);ClickRow(", this.DepotID, ",'", dataRowView["CheckRecordID"].ToString(), "','", dataRowView["IsConfirm"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[2].Text = BooksCommonClass.GetUserName(dataRowView["UserCode"].ToString()); string a; if ((a = dataRowView["IsConfirm"].ToString()) != null) { if (a == "0") { e.Row.Cells[3].Text = "未确认"; return; } if (!(a == "1")) { return; } e.Row.Cells[3].Text = "已确认"; } } }
private void AddDisplay() { this.txtApplyDate.Text = DateTime.Now.ToShortDateString(); this.txtApplyPerson.Text = BooksCommonClass.GetUserName(base.UserCode); string personInfo = OAOfficeCommonClas.GetPersonInfo(base.UserCode, "i_bmdm"); this.txtApplyDept.Text = BooksCommonClass.GetDepartmentName(int.Parse(personInfo)); }
private void EditDisplay() { HROrgManpowerPlan model = this.hrAction.GetModel(this.RecordID); if (model != null) { this.LbLayoutName.Text = model.PlanName; this.LbLayoutDate.Text = model.RecordDate.ToShortDateString(); this.LblAddPerson.Text = BooksCommonClass.GetUserName(model.UserCode); } }
private void EditDisplay() { DataTable list = this.amAction.GetList("DARecordID='" + this.InStorageID + "'"); if (list.Rows.Count > 0) { DataRow dataRow = list.Rows[0]; this.txtApplyDate.Text = ((dataRow["ApplyDate"].ToString().Trim() == "") ? DateTime.Now.ToShortDateString() : Convert.ToDateTime(dataRow["ApplyDate"].ToString().Trim()).ToShortDateString()); this.txtApplyPerson.Text = BooksCommonClass.GetUserName(dataRow["ApplyMan"].ToString()); this.txtApplyDept.Text = BooksCommonClass.GetDepartmentName(int.Parse(dataRow["ApplyDepartment"].ToString())); this.txtRemark.Text = dataRow["Remark"].ToString(); } }
private void EditDisplay() { DataTable list = this.amAction.GetList("PARecordID=" + this.InStorageID); if (list.Rows.Count > 0) { DataRow dataRow = list.Rows[0]; this.txtApplyDate.Text = ((dataRow["ApplyDate"].ToString().Trim() == "") ? DateTime.Now.ToShortDateString() : Convert.ToDateTime(dataRow["ApplyDate"].ToString().Trim()).ToShortDateString()); this.txtApplyPerson.Text = BooksCommonClass.GetUserName(dataRow["ApplyMan"].ToString()); this.HdnApplyPerson.Value = dataRow["ApplyMan"].ToString(); this.txtUserPerson.Text = BooksCommonClass.GetUserName(dataRow["UseMan"].ToString()); this.HdnUserPerson.Value = dataRow["UseMan"].ToString(); } }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = "OnRecord(this);"; e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); string a; if ((a = dataRowView["UseType"].ToString()) != null) { if (!(a == "0")) { if (a == "1") { e.Row.Cells[2].Text = "以旧换新"; } } else { e.Row.Cells[2].Text = "不回收"; } } string a2; if ((a2 = dataRowView["GetType"].ToString()) != null) { if (!(a2 == "0")) { if (a2 == "1") { e.Row.Cells[3].Text = "部门公共"; } } else { e.Row.Cells[3].Text = "个人领用"; } } TextBox textBox = (TextBox)e.Row.Cells[7].FindControl("txtFactAmount"); textBox.Attributes["onblur"] = "javascript:checkDecimal(this);"; DataTable stockCheckDetailTable = this.amAction.GetStockCheckDetailTable(this.InStorageID.ToString(), dataRowView["MaterialID"].ToString()); if (stockCheckDetailTable.Rows.Count > 0) { DataRow dataRow = stockCheckDetailTable.Rows[0]; textBox.Text = dataRow["CheckNumber"].ToString(); e.Row.Cells[8].Text = BooksCommonClass.GetUserName(dataRow["UserCode"].ToString()); e.Row.Cells[9].Text = dataRow["Remark"].ToString(); } } }
private SMSLog GetSMSData() { string userName = BooksCommonClass.GetUserName(this.Session["yhdm"].ToString()); return(new SMSLog { ID = 0, I_XGID = this.HdnRecordID.Value, Message = userName + "向您发送档案借阅催还信息!", ReceiveUser = this.HdnBorrowMan.Value, SendTime = DateTime.Now, SendUser = this.HdnBorrowMan.Value, V_LXBM = "007" }); }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", dataRowView["RecordID"].ToString(), "','", dataRowView["AuditState"].ToString(), "','", dataRowView["IsConfirm"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[1].Text = BooksCommonClass.GetUserName(dataRowView["UserCode"].ToString()); if (dataRowView["IsConfirm"].ToString() == "1") { e.Row.Cells[3].Text = "报损确认"; return; } switch (int.Parse(dataRowView["AuditState"].ToString())) { case -2: e.Row.Cells[3].Text = "打回到发起人"; break; case -1: e.Row.Cells[3].Text = "未启动流程"; return; case 0: e.Row.Cells[3].Text = "流程流转中"; return; case 1: e.Row.Cells[3].Text = "审核通过"; return; default: return; } } }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", dataRowView["LibraryCode"].ToString(), "','", dataRowView["Manager"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[2].Text = BooksCommonClass.GetUserName(dataRowView["Manager"].ToString()); } }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", base.Request["ic"].ToString(), "','", dataRowView["DARecordID"].ToString(), "','", dataRowView["ApplyDepartment"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[2].Text = BooksCommonClass.GetDepartmentName(int.Parse(dataRowView["ApplyDepartment"].ToString())); e.Row.Cells[3].Text = BooksCommonClass.GetUserName(dataRowView["ApplyMan"].ToString()); } }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", dataRowView["RecordID"].ToString(), "','", dataRowView["LendState"].ToString(), "','", dataRowView["BorrowMan"].ToString(), "');" }); e.Row.Cells[0].Text = BooksCommonClass.GetUserName(this.Session["yhdm"].ToString()); switch (int.Parse(dataRowView["LendState"].ToString())) { case 1: e.Row.Cells[5].Text = "未借出"; return; case 2: e.Row.Cells[5].Text = "已借出"; return; case 3: e.Row.Cells[5].Text = "归还申请"; return; case 4: e.Row.Cells[5].Text = "已归还"; break; default: return; } } }
private void AddDisplay() { this.lblAddPerson.Text = BooksCommonClass.GetUserName(this.Session["yhdm"].ToString()); this.txtLayoutDate.Text = DateTime.Now.ToShortDateString(); }
protected void GVBook_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowIndex > -1) { DataRowView dataRowView = (DataRowView)e.Row.DataItem; e.Row.Attributes["onmouseover"] = "OnMouseOverRecord(this);"; e.Row.Attributes["onclick"] = string.Concat(new string[] { "OnRecord(this);ClickRow('", dataRowView["DARecordID"].ToString(), "','", dataRowView["AuditState"].ToString(), "','", dataRowView["IsSubmit"].ToString(), "','", dataRowView["IsAbove"].ToString(), "','", dataRowView["ApplyDepartment"].ToString(), "');" }); e.Row.Cells[0].Text = Convert.ToString(e.Row.RowIndex + 1); e.Row.Cells[2].Text = BooksCommonClass.GetUserName(dataRowView["ApplyMan"].ToString()); string a; if (dataRowView["IsAbove"].ToString() == "0" && (a = dataRowView["IsSubmit"].ToString()) != null) { if (!(a == "0")) { if (a == "1") { e.Row.Cells[3].Text = "已提交"; } } else { e.Row.Cells[3].Text = "未提交"; } } if (dataRowView["IsAbove"].ToString() == "1") { switch (int.Parse(dataRowView["AuditState"].ToString())) { case -2: e.Row.Cells[3].Text = "打回到发起人"; break; case -1: e.Row.Cells[3].Text = "未启动流程"; return; case 0: e.Row.Cells[3].Text = "流程流转中"; return; case 1: e.Row.Cells[3].Text = "审核通过"; return; default: return; } } } }