private void BindOrderReplace(int replaceId) { DataTable replaceApplysTable = TradeHelper.GetReplaceApplysTable(replaceId); if (replaceApplysTable.Rows[0]["HandleStatus"] != System.DBNull.Value) { if ((int)replaceApplysTable.Rows[0]["HandleStatus"] == 0) { this.handleStatus.Text = "待处理"; } else { if ((int)replaceApplysTable.Rows[0]["HandleStatus"] == 1) { this.handleStatus.Text = "已完成"; } else if ((int)replaceApplysTable.Rows[0]["HandleStatus"] == 2) { this.handleStatus.Text = "已拒绝"; } else { this.handleStatus.Text = "已受理"; } } } if (replaceApplysTable.Rows[0]["ApplyForTime"] != System.DBNull.Value) { this.litAddDate.Time = (System.DateTime)replaceApplysTable.Rows[0]["ApplyForTime"]; } if (replaceApplysTable.Rows[0]["Comments"] != System.DBNull.Value) { this.litRemark.Text = replaceApplysTable.Rows[0]["Comments"].ToString(); } if (replaceApplysTable.Rows[0]["AdminRemark"] != System.DBNull.Value) { this.litAdminRemark.Text = replaceApplysTable.Rows[0]["AdminRemark"].ToString(); } if (replaceApplysTable.Rows[0]["OrderId"] != System.DBNull.Value) { this.orderId = replaceApplysTable.Rows[0]["OrderId"].ToString(); } }