private void SaveQuatation_Info() { var cookie = HttpContext.Current.Request.Cookies[FormsAuthentication.FormsCookieName]; var ticket = FormsAuthentication.Decrypt(cookie.Value); string uid = ticket.UserData; TSM.BLL.pms_Quotation_Info m_bllpms_Quotation_Info = new TSM.BLL.pms_Quotation_Info(); TSM.Model.pms_Quotation_Info modelpms_Quotation_Info = new TSM.Model.pms_Quotation_Info(); modelpms_Quotation_Info.ProductInfoID = m_bllpms_Product_Info.GetMaxId() - 1; modelpms_Quotation_Info.QuotationDepart = 1; modelpms_Quotation_Info.QuotationTime = DateTime.Now.Date; modelpms_Quotation_Info.KnifeCharges = 0; modelpms_Quotation_Info.ToolCharges = 0; modelpms_Quotation_Info.SprayingCharges = 0; modelpms_Quotation_Info.PackingCharges = 0; modelpms_Quotation_Info.TestingCharges = 0; modelpms_Quotation_Info.TransportCharges = 0; modelpms_Quotation_Info.QuotationPrice = 0; modelpms_Quotation_Info.ApprovalStatus = "待报价"; modelpms_Quotation_Info.UserInfoID = int.Parse(uid); modelpms_Quotation_Info.TransportDescrib = ""; modelpms_Quotation_Info.TestingDescrib = ""; modelpms_Quotation_Info.ChargeDescrib = ""; modelpms_Quotation_Info.SprayingDescrib = ""; modelpms_Quotation_Info.ToolsDescrib = ""; modelpms_Quotation_Info.KinfeDescrib = ""; modelpms_Quotation_Info.PackingDescrib = ""; m_bllpms_Quotation_Info.Add(modelpms_Quotation_Info); }