| | |
| | | OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; |
| | | Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; |
| | | EC_OrderBLL bll_EC_OrderBLL = null; |
| | | OA_StaffBLL bll_OA_StaffBLL = null; |
| | | |
| | | public Guid targetid = Guid.Empty; |
| | | public static string Keyid; |
| | |
| | | bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); |
| | | bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); |
| | | bll_EC_OrderBLL = new EC_OrderBLL(); |
| | | bll_OA_StaffBLL = new OA_StaffBLL(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | this.spanSumPrice.InnerText = (_eC_OrderBasic.SumPrice ??0).ToString("0.00"); |
| | | this.spanSurplusPrintNum.InnerText = _eC_OrderBasic.OrderExtend.SurplusPrintNum.ToString2(); |
| | | |
| | | this.spanSpecialOprator.InnerText = CurrentUser.ShortName; |
| | | //this.spanSpecialOprator.InnerText = CurrentUser.ShortName; |
| | | this.selBusinessManager.Value = _eC_OrderBasic.Creater; |
| | | this.spanSpecialTime.InnerText = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); |
| | | this.txtRemark.Value = _eC_OrderBasic.Remark.ToString2(); |
| | | |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = 500; |
| | | pa.PageIndex = 1; |
| | | this.selOutFirm.DataSource = bll_OA_CorporateClientsBLL.SelectModelPage(pa, CurrentUser.MemberId, ""); |
| | | var ss = bll_OA_CorporateClientsBLL.SelectModelPage(pa, CurrentUser.MemberId, ""); |
| | | this.selOutFirm.DataSource = ss; |
| | | this.selOutFirm.DataTextField = "OutVendorName"; |
| | | this.selOutFirm.DataValueField = "FirmId"; |
| | | this.selOutFirm.DataBind(); |
| | | this.selOutFirm.Items.Insert(0, new ListItem("请选择", "")); |
| | | var aaa = ss.FirstOrDefault(x => x.OutVendorName == "其他"); |
| | | if (aaa != null) |
| | | { |
| | | this.selOutFirm.SelectedValue = aaa.FirmId.ToString(); |
| | | } |
| | | selOutFirm_SelectedIndexChanged(null, null); |
| | | } |
| | | |
| | |
| | | this.selExigencyDegree.DataBind(); |
| | | this.selExigencyDegree.Items.Add(new ListItem("请选择", "")); |
| | | this.selExigencyDegree.Value = "0"; |
| | | |
| | | this.selBusinessManager.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, false); |
| | | this.selBusinessManager.DataTextField = "Name"; |
| | | this.selBusinessManager.DataValueField = "Name"; |
| | | this.selBusinessManager.DataBind(); |
| | | //this.selBusinessManager.Items.Insert(0, new ListItem("全部", "")); |
| | | } |
| | | } |
| | | |
| | |
| | | JavaScript.MessageBox("未传递参数!", this); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.selOutFirm.SelectedValue)) |
| | | { |
| | | JavaScript.MessageBox("未选择外协厂商!", this); |
| | | return false; |
| | | } |
| | | |
| | | int? orderid = MyConvert.ConvertToInt32(orderIdStr); |
| | | if (!orderid.HasValue) |
| | | { |
| | |
| | | m_EC_OrderBasicNew.SellerId = this.selOutFirm.SelectedValue.ToGuid2(); |
| | | m_EC_OrderBasicNew.BuyerId = CurrentUser.MemberId; |
| | | m_EC_OrderBasicNew.BuyerName = CurrentUser.Name; |
| | | m_EC_OrderBasicNew.Creater = CurrentUser.ShortName; |
| | | m_EC_OrderBasicNew.Creater = this.selBusinessManager.Value;// CurrentUser.ShortName; |
| | | m_EC_OrderBasicNew.Operator = CurrentUser.ShortName; |
| | | m_EC_OrderBasicNew.DeliveryTime = this.txtDeliveryTime.Value.ToDateTime2(); |
| | | m_EC_OrderBasicNew.DocumentName = _eC_OrderBasic.DocumentName; |
| | |
| | | |
| | | protected void selOutFirm_SelectedIndexChanged(object sender, EventArgs e) |
| | | { |
| | | |
| | | OA_CorporateClients oA_CorporateClientsModel = new OA_CorporateClients(); |
| | | oA_CorporateClientsModel = bll_OA_CorporateClientsBLL.GetModelByMemberIdAndName(CurrentUser.MemberId, selOutFirm.SelectedItem.Text.ToString()); |
| | | if (oA_CorporateClientsModel.Keyid != oA_CorporateClientsModel.FirmId) |
| | | if(selOutFirm.SelectedValue != "") |
| | | { |
| | | trFile.Visible = true; |
| | | LF_OrderFile lfModel = new LF_OrderFile(); |
| | | LF_OrderFileBLL lF_OrderFileBLL = new LF_OrderFileBLL(); |
| | | lfModel = lF_OrderFileBLL.GetModel(Convert.ToInt32(Request["orderid"])); |
| | | if (lfModel == null) |
| | | OA_CorporateClients oA_CorporateClientsModel = new OA_CorporateClients(); |
| | | oA_CorporateClientsModel = bll_OA_CorporateClientsBLL.GetModelByMemberIdAndName(CurrentUser.MemberId, selOutFirm.SelectedItem.Text.ToString()); |
| | | if (oA_CorporateClientsModel.Keyid != oA_CorporateClientsModel.FirmId) |
| | | { |
| | | cbkIsAllRecovery.Visible = false; |
| | | IsFiles = true; |
| | | trFile.Visible = true; |
| | | LF_OrderFile lfModel = new LF_OrderFile(); |
| | | LF_OrderFileBLL lF_OrderFileBLL = new LF_OrderFileBLL(); |
| | | lfModel = lF_OrderFileBLL.GetModel(Convert.ToInt32(Request["orderid"])); |
| | | if (lfModel == null) |
| | | { |
| | | cbkIsAllRecovery.Visible = false; |
| | | IsFiles = true; |
| | | } |
| | | else |
| | | { |
| | | cbkIsAllRecovery.Visible = true; |
| | | IsFiles = false; |
| | | } |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | cbkIsAllRecovery.Visible = true; |
| | | trFile.Visible = false; |
| | | IsFiles = false; |
| | | } |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | | trFile.Visible = false; |
| | | IsFiles = false; |
| | | } |
| | | string script = "<script>ReceiptT('member', '"+ CurrentUser.MemberId + "', 4, 100)</script>"; |
| | | this.ClientScript.RegisterStartupScript(this.Page.GetType(), "key", script); |
| | | |
| | | } |
| | | } |
| | | } |