public void LoadSavedOrder() { check ck = new check(); data_conn cn = new data_conn(); DataSet ds = new DataSet(); GetRequest GetRequest1 = new GetRequest(); string u = ck.CheckNumber(GetRequest1.GetRequestCookies("user_id", "0")); string orderid = ck.CheckInput(GetRequest1.GetRequestQueryString("orderid", "0")); string role = GetRequest1.GetRequestQueryString("role", ""); AllinOrder AllinOrder1 = new AllinOrder(); string[] odetail; odetail = AllinOrder1.GetOrderDetail(orderid); ltrOrderViewCode.Text = odetail[0]; ltrOrderViewShipper.Text = odetail[8]; ltrOrderViewConsignee.Text = odetail[9]; ltrOrderViewNotifyParty.Text = odetail[10]; ltrOrderViewCompanyName.Text = odetail[11]; ltrOrderViewEmail.Text = odetail[12]; ltrOrderViewContactor.Text = odetail[13]; ltrOrderViewMobile.Text = odetail[14]; ltrOrderViewTel.Text = odetail[15]; ltrOrderViewFax.Text = odetail[16]; ltrOrderViewStartport.Text = odetail[17]; ltrOrderViewMidport.Text = odetail[18]; ltrOrderViewDestport.Text = odetail[19]; ltrOrderViewMarksNumbers.Text = odetail[20]; ltrOrderViewNumbersofPackages.Text = odetail[21]; ltrOrderViewDescription.Text = odetail[22]; ltrOrderViewGrossWeight.Text = odetail[23]; ltrOrderViewMeasurement.Text = odetail[24]; ltrOrderViewCarrier.Text = odetail[26]; ltrOrderViewKaihangri.Text = odetail[27]; ltrOrderViewZhuangxiangri.Text = odetail[28]; ltrOrderViewJieguanri.Text = odetail[29]; ltrOrderViewGP.Text = odetail[34]; ltrFreightGP.Text = odetail[49]; ltrFreightGPV.Text = odetail[50]; ltrFreightAppend.Text = odetail[44]; ltrFreightCarrier.Text = odetail[68]; ltrOrderViewHyf.Text = odetail[59]; ltrOrderViewBeizhu.Text = odetail[36]; ltrOverageThis.Text = odetail[62]; txt_edit_pricegp.Text = odetail[49]; txt_edit_pricegpv.Text = odetail[50]; txt_edit_price_shipcompany.Text = odetail[68]; if (odetail[44] != "") { ltrOrderFujiafei.Text = "(附加费:" + odetail[44] + ")"; } SetStep(odetail[1], odetail[37], odetail[38]); if (u != odetail[3] & u != odetail[4]) { Response.Redirect("/search/err.aspx"); }//不是买卖双方的用户无法查看该订单! string order_type_string = odetail[58]; if (role == "shipper") { PlaceHolder3.Visible = true; ltrOrderStatus.Text = "<div style=\"padding:20px; margin-bottom:10px; font-size:14px; line-height:30px; text-align:left; background:#FFFCF3;border:1px solid #F7E4A5;\">" + odetail[89].Replace("{1}", orderid).Replace("{9}", order_type_string) + "</div>"; if (u != odetail[3]) { Response.Redirect("/search/err.aspx"); }//不是买卖双方的用户无法查看该订单! }//订舱方显示的文本 if (role == "forward") { PlaceHolder4.Visible = true; ltrOrderStatus.Text = "<div style=\"padding:20px; margin-bottom:10px; font-size:14px; line-height:30px; text-align:left; background:#FFFCF3;border:1px solid #F7E4A5;\">" + odetail[90].Replace("{1}", orderid).Replace("{9}", order_type_string) + "</div>"; if (u != odetail[4]) { Response.Redirect("/search/err.aspx"); }//不是买卖双方的用户无法查看该订单! if (odetail[1] != "2") { phEditDisabled.Visible = true; phEditEnabled.Visible = false; } else { phEditDisabled.Visible = false; phEditEnabled.Visible = true; } }//承运方显示的文本 if (odetail[1] != "2") { PlaceHolder2.Visible = false; PlaceHolder1.Visible = false; } ltrSMS.Text = "<a href=\"/member/pm_detail.aspx?cid=" + odetail[4] + "\" id=\"linkSMS\" target=\"_blank\"></a>"; AllinFreight AllinFreight1 = new AllinFreight(); string[] fdetail; if (odetail[7] == "0") { fdetail = AllinFreight1.GetFreightDetail("9", ck.CheckNumber(odetail[6]), "0"); } else { fdetail = AllinFreight1.GetFreightDetail("9", "0", ck.CheckNumber(odetail[7])); } ltrEndDate.Text = Convert.ToDateTime(fdetail[6]).ToString("yyyy-MM-dd"); ltrFreightTitle.Text = "<span style=\"font-weight:bold;font-size:14px\">" + odetail[75] + "</span>"; ltrFreightPostdate.Text = Convert.ToDateTime(odetail[65]).ToString("MM") + "/" + Convert.ToDateTime(odetail[65]).ToString("dd"); ltrFreightEnddate.Text = Convert.ToDateTime(odetail[66]).ToString("MM") + "/" + Convert.ToDateTime(odetail[66]).ToString("dd"); ltrFreightCompany.Text = fdetail[18]; ltrFreightAllinStar.Text = fdetail[19]; ltrFreightUserStar.Text = fdetail[20]; ltrFreightLine.Text = odetail[69]; ltrFreightStartport.Text = odetail[70]; ltrFreightDestport.Text = odetail[71]; ltrFreightAssuranceSpace.Text = odetail[100]; ltrFreightAssurancePrice.Text = odetail[101]; lblTousu.Text = fdetail[18]; AllinUser AllinUser1 = new AllinUser(); string[] udetail; udetail = AllinUser1.GetUserDetail(u); txtbank.Value = udetail[50]; txtbankname.Value = udetail[51]; txtbankaccount.Value = udetail[52]; txtotheraccount.Value = udetail[53]; ltrOverageTotal.Text = udetail[55]; ltrOverageAvailable.Text = (Convert.ToInt32(ltrOverageTotal.Text) - Convert.ToInt32(ltrOverageThis.Text)).ToString(); ltrPayJump.Text = "<a href=\"/member/order/pay_sel_single.aspx?orderid=" + orderid + "\">立即充值</a>"; //if (Convert.ToInt32(ltrOverageTotal.Text) - Convert.ToInt32(ltrOverageThis.Text) >= 0) //{ // PlaceHolder8.Visible = true; // PlaceHolder9.Visible = false; // PlaceHolder10.Visible = true; // PlaceHolder11.Visible = false; //} //else //{ // PlaceHolder8.Visible = false; // PlaceHolder9.Visible = true; // PlaceHolder10.Visible = false; // PlaceHolder11.Visible = true; //} PlaceHolder8.Visible = true; PlaceHolder9.Visible = false; PlaceHolder10.Visible = true; PlaceHolder11.Visible = false; }
public void LoadEditOrder() { check ck = new check(); data_conn cn = new data_conn(); DataSet ds = new DataSet(); GetRequest GetRequest1 = new GetRequest(); string u = ck.CheckNumber(GetRequest1.GetRequestCookies("user_id", "0")); string orderid = ck.CheckInput(GetRequest1.GetRequestQueryString("orderid", "0")); string role = GetRequest1.GetRequestQueryString("role", ""); AllinOrder AllinOrder1 = new AllinOrder(); string[] odetail; odetail = AllinOrder1.GetOrderDetail(orderid); ltrHyf.Text = odetail[59]; txtPubf.Text = odetail[4]; txtCode.Value = odetail[0]; txtShipper.Value = odetail[8]; txtConsignee.Value = odetail[9]; txtNotifyParty.Value = odetail[10]; txtCompanyName.Value = odetail[11]; txtEmail.Value = odetail[12]; txtContactor.Value = odetail[13]; txtMobile.Value = odetail[14]; txtTel.Value = odetail[15]; txtFax.Value = odetail[16]; txtstartport.Value = odetail[17]; txtmidport.Value = odetail[18]; txtdestport.Value = odetail[19]; txtMarksNumbers.Value = odetail[20]; txtNumbersofPackages.Value = odetail[21]; txtDescription.Value = odetail[22]; txtGrossWeight.Value = odetail[23]; txtMeasurement.Value = odetail[24]; txtkaihangri.Value = odetail[27]; txtzhuangxiangri.Value = odetail[28]; txtjieguanri.Value = odetail[29]; ltrEndDate.Text = odetail[105]; txtcarrier_name.Value = odetail[26]; ltrFreightTitle.Text = "<span style=\"font-weight:bold;font-size:14px\">" + odetail[75] + "</span>"; txtgp.Value = odetail[34]; if (odetail[44] != "") { ltrOrderFujiafei1.Text = "(附加费:" + odetail[44] + ")"; } ltrFreightGP.Text = odetail[49]; ltrFreightGPV.Text = odetail[50]; ltrFreightAppend.Text = odetail[44]; ltrFreightCarrier.Text = odetail[68]; txtbeizhu.Value = odetail[36]; SetStep(odetail[1], odetail[37], odetail[38]); ltrSMS.Text = "<a href=\"/member/pm_detail.aspx?cid=" + odetail[4] + "\" id=\"linkSMS\" target=\"_blank\"></a>"; if (u != odetail[3]) { Response.Redirect("/search/err.aspx"); }//不是买方的用户无修改订单! if (odetail[1] != "2" & odetail[1] != "3" & odetail[1] != "7") { Response.Redirect("/search/err.aspx"); }//排除不能修改的订单状态! ltrOrderStatus.Text = "<div style=\"padding:20px; margin-bottom:10px; font-size:14px; line-height:30px; text-align:center; background:#FFFCF3;border:1px solid #F7E4A5;\">修改订舱单</div>"; AllinFreight AllinFreight1 = new AllinFreight(); string[] fdetail; if (odetail[7] == "0") { fdetail = AllinFreight1.GetFreightDetail("9", ck.CheckNumber(odetail[6]), "0"); } else { fdetail = AllinFreight1.GetFreightDetail("9", "0", ck.CheckNumber(odetail[7])); } ltrEndDate.Text = Convert.ToDateTime(fdetail[6]).ToString("yyyy-MM-dd"); ltrFreightTitle.Text = "<span style=\"font-weight:bold;font-size:14px\">" + odetail[75] + "</span>"; ltrFreightPostdate.Text = Convert.ToDateTime(odetail[65]).ToString("MM") + "/" + Convert.ToDateTime(odetail[65]).ToString("dd"); ltrFreightEnddate.Text = Convert.ToDateTime(odetail[66]).ToString("MM") + "/" + Convert.ToDateTime(odetail[66]).ToString("dd"); ltrFreightCompany.Text = fdetail[18]; ltrFreightAllinStar.Text = fdetail[19]; ltrFreightUserStar.Text = fdetail[20]; ltrFreightLine.Text = odetail[69]; ltrFreightStartport.Text = odetail[70]; ltrFreightDestport.Text = odetail[71]; ltrFreightAssuranceSpace.Text = odetail[100]; ltrFreightAssurancePrice.Text = odetail[101]; lblTousu.Text = fdetail[18]; AllinUser AllinUser1 = new AllinUser(); string[] udetail; udetail = AllinUser1.GetUserDetail(u); txtbank.Value = udetail[50]; txtbankname.Value = udetail[51]; txtbankaccount.Value = udetail[52]; txtotheraccount.Value = udetail[53]; txtaliaccount.Value = udetail[9]; }
public void LoadSavedOrder() { check ck = new check(); data_conn cn = new data_conn(); DataSet ds = new DataSet(); GetRequest GetRequest1 = new GetRequest(); string u = ck.CheckNumber(GetRequest1.GetRequestCookies("user_id", "0")); string orderid = ck.CheckInput(GetRequest1.GetRequestQueryString("orderid", "0")); string role = GetRequest1.GetRequestQueryString("role", ""); AllinOrder AllinOrder1 = new AllinOrder(); string[] odetail; odetail = AllinOrder1.GetOrderDetail(orderid); ltrOrderViewCode.Text = odetail[0]; ltrOrderViewShipper.Text = odetail[8]; ltrOrderViewConsignee.Text = odetail[9]; ltrOrderViewNotifyParty.Text = odetail[10]; ltrOrderViewCompanyName.Text = odetail[11]; ltrOrderViewEmail.Text = odetail[12]; ltrOrderViewContactor.Text = odetail[13]; ltrOrderViewMobile.Text = odetail[14]; ltrOrderViewTel.Text = odetail[15]; ltrOrderViewFax.Text = odetail[16]; ltrOrderViewStartport.Text = odetail[17]; ltrOrderViewMidport.Text = odetail[18]; ltrOrderViewDestport.Text = odetail[19]; ltrOrderViewMarksNumbers.Text = odetail[20]; ltrOrderViewNumbersofPackages.Text = odetail[21]; ltrOrderViewDescription.Text = odetail[22]; ltrOrderViewGrossWeight.Text = odetail[23]; ltrOrderViewMeasurement.Text = odetail[24]; ltrOrderViewCarrier.Text = odetail[26]; ltrOrderViewKaihangri.Text = odetail[27]; ltrOrderViewZhuangxiangri.Text = odetail[28]; ltrOrderViewJieguanri.Text = odetail[29]; ltrOrderViewGP.Text = odetail[34]; ltrFreightGP.Text = odetail[49]; ltrFreightGPV.Text = odetail[50]; ltrFreightAppend.Text = odetail[44]; ltrFreightCarrier.Text = odetail[26]; ltrOrderViewHyf.Text = odetail[59]; ltrOrderViewBeizhu.Text = odetail[36]; if (odetail[44] != "") { ltrOrderFujiafei.Text = "(附加费:" + odetail[44] + ")"; } string order_type_string = odetail[58]; ltrSMS.Text = "<a href=\"/member/pm_detail.aspx?cid=" + odetail[4] + "\" id=\"linkSMS\" target=\"_blank\"></a>"; AllinFreight AllinFreight1 = new AllinFreight(); string[] fdetail; if (odetail[7] == "0") { fdetail = AllinFreight1.GetFreightDetail("9", ck.CheckNumber(odetail[6]), "0"); } else { fdetail = AllinFreight1.GetFreightDetail("9", "0", ck.CheckNumber(odetail[7])); } ltrFreightTitle.Text = "<span style=\"font-weight:bold;font-size:14px\">" + odetail[75] + "</span>"; ltrFreightPostdate.Text = Convert.ToDateTime(odetail[65]).ToString("MM") + "/" + Convert.ToDateTime(odetail[65]).ToString("dd"); ltrFreightEnddate.Text = Convert.ToDateTime(odetail[66]).ToString("MM") + "/" + Convert.ToDateTime(odetail[66]).ToString("dd"); ltrFreightCompany.Text = fdetail[18]; ltrFreightAllinStar.Text = fdetail[19]; ltrFreightUserStar.Text = fdetail[20]; ltrFreightLine.Text = odetail[69]; ltrFreightStartport.Text = odetail[70]; ltrFreightDestport.Text = odetail[71]; ltrFreightAssuranceSpace.Text = odetail[100]; ltrFreightAssurancePrice.Text = odetail[101]; ltrOrderFirstStep.Text = odetail[2] + ":订舱方 " + odetail[107] + " 创建订单"; string sql = ""; sql += "SELECT * FROM TB_ORDER_DETAIL WHERE order_code = '" + orderid + "'"; ds = cn.mdb_ds(sql, "order"); rptOrder.DataSource = ds.Tables["order"].DefaultView; rptOrder.DataBind(); }