/// <summary> /// 绑定人员详细 /// </summary> /// <param name="id"></param> void BindDetail(int id) { model = bll.GetModel(id); txtEmail.Text = model.Email; txtNameInfo.Text = model.NameInfo; txtPhone.Text = model.Phone; ddlType.SelectedValue = model.TypeId.ToString(); ckState.Checked = model.StateInfo == 1 ? true : false; account = model.Account; txtPwd.Text = Common.DESEncrypt.Decrypt(model.Pwd); }
/// <summary> /// 获取配送信息 /// </summary> /// <param name="orderId"></param> /// <returns></returns> public string[] GetDisDistribution(int orderId) { BLL.OrdeDistribution bll = new BLL.OrdeDistribution(); BLL.Workers bllWorkers = new BLL.Workers(); BLL.Distribution bllDistribution = new BLL.Distribution(); string[] strDis = new string[4]; DataSet ds = bll.GetList("OrderId=" + orderId); if (ds.Tables[0].Rows.Count > 0) { strDis[0] = GetCategoryName(int.Parse(ds.Tables[0].Rows[0]["TypeId"].ToString())); if (ds.Tables[0].Rows[0]["TypeId"].ToString() == "10018")//公司配送 { if (ds.Tables[0].Rows[0]["WorkersId"].ToString() == "") { strDis[1] = "--"; } else { strDis[1] = bllWorkers.GetModel(int.Parse(ds.Tables[0].Rows[0]["WorkersId"].ToString())).NameInfo; } } else if (ds.Tables[0].Rows[0]["TypeId"].ToString() == "10019")//快递配送 { if (ds.Tables[0].Rows[0]["DistributionId"].ToString() == "") { strDis[1] = "--"; } else { strDis[1] = bllDistribution.GetModel(int.Parse(ds.Tables[0].Rows[0]["DistributionId"].ToString())).CompanyName; } } else { strDis[1] = "--"; } strDis[2] = ds.Tables[0].Rows[0]["DistributionNum"].ToString() == "" ? "--" : ds.Tables[0].Rows[0]["DistributionNum"].ToString(); strDis[3] = ds.Tables[0].Rows[0]["PriceType"].ToString() == "1" ? "非到付" : "到付"; } else { strDis[0] = "--"; //配送类型 strDis[1] = "--"; //配送人 strDis[2] = "--"; //快递单号 strDis[3] = "--"; //快递费用 } return(strDis); }
/// <summary> /// 获取下单员姓名 /// </summary> /// <param name="workerId"></param> /// <returns></returns> public string GetWorkerName(int workerId) { BLL.Workers bllWorker = new BLL.Workers(); return(bllWorker.GetModel(workerId).NameInfo); }