private void BindOrderRefund(int refundId) { DataTable refundApplysTable = TradeHelper.GetRefundApplysTable(refundId); if (refundApplysTable.Rows[0]["HandleStatus"] != System.DBNull.Value) { if ((int)refundApplysTable.Rows[0]["HandleStatus"] == 0) { this.handleStatus.Text = "待处理"; } else { if ((int)refundApplysTable.Rows[0]["HandleStatus"] == 1) { this.handleStatus.Text = "已完成"; } else if ((int)refundApplysTable.Rows[0]["HandleStatus"] == 2) { this.handleStatus.Text = "已拒绝"; } else { this.handleStatus.Text = "已受理"; } } } if (refundApplysTable.Rows[0]["ApplyForTime"] != System.DBNull.Value) { this.litAddDate.Time = (System.DateTime)refundApplysTable.Rows[0]["ApplyForTime"]; } if (refundApplysTable.Rows[0]["RefundRemark"] != System.DBNull.Value) { this.litRemark.Text = refundApplysTable.Rows[0]["RefundRemark"].ToString(); } if (refundApplysTable.Rows[0]["AdminRemark"] != System.DBNull.Value) { this.litAdminRemark.Text = refundApplysTable.Rows[0]["AdminRemark"].ToString(); } if (refundApplysTable.Rows[0]["RefundType"] != System.DBNull.Value) { string refundType = refundApplysTable.Rows[0]["RefundType"].ToString(); if (refundType.Equals("1")) { this.litType.Text = "预付款"; } else if (refundType.Equals("2")) { this.litType.Text = "银行转账"; } else if (refundType.Equals("3")) { this.litType.Text = "原路返回"; } } if (refundApplysTable.Rows[0]["OrderId"] != System.DBNull.Value) { this.orderId = refundApplysTable.Rows[0]["OrderId"].ToString(); } }