📄 orderedit.ascx.cs
字号:
return this.storeHourserEditTxt.SelectedItem.Value;
}
set
{
this.storeHourserEditTxt.SelectedItem.Value = value;
}
}
public string StorehouseNote
{
get
{
return storeHourseNoteEditTxt.Text;
}
set
{
storeHourseNoteEditTxt.Text = value;
}
}
public string Carrier
{
get
{
return productSenderEditTxt.Text;
}
set
{
productSenderEditTxt.Text = value;
}
}
public string TransportDate
{
get
{
return productSendTimeEditTxt.Text;
}
set
{
productSendTimeEditTxt.Text = value;
}
}
public string TransportInfoInputerID
{
get
{
return this.productSendReceviceEditTxt.SelectedItem.Value;
}
set
{
this.productSendReceviceEditTxt.SelectedItem.Value = value;
}
}
public string TransportInfoInputer
{
get
{
return this.productSendReceviceEditTxt.SelectedItem.Text;
}
set
{
this.productSendReceviceEditTxt.SelectedItem.Text = value;
}
}
public string TransportNote
{
get
{
return this.productSendNoteEditTxt.Text;
}
set
{
productSendNoteEditTxt.Text = value;
}
}
public string Receiver
{
get
{
return productReciverEditTxt.Text;
}
set
{
productReciverEditTxt.Text = value;
}
}
public string ArrivalDate
{
get
{
return productReciverTimeEditTxt.Text;
}
set
{
productReciverTimeEditTxt.Text = value;
}
}
public string ReceiveInfoInputerID
{
get
{
return this.productReciverInfoEditTxt.SelectedItem.Value; ;
}
set
{
this.productReciverInfoEditTxt.SelectedItem.Value = value;
}
}
public string ReceiveInfoInputer
{
get
{
return this.productReciverInfoEditTxt.SelectedItem.Text;
}
set
{
this.productReciverInfoEditTxt.SelectedItem.Text = value;
}
}
public string ReceiveNote
{
get
{
return this.productReciverNoteEditTxt.Text;
}
set
{
this.productReciverNoteEditTxt.Text = value;
}
}
public string OrderCloseAccepterID
{
get
{
return this.orderCloserEditTxt.SelectedItem.Value;
}
set
{
this.orderCloserEditTxt.SelectedItem.Value = value;
}
}
public string OrderCloser
{
get
{
return this.orderCloserEditTxt.SelectedItem.Text;
}
set
{
this.orderCloserEditTxt.SelectedItem.Text = value;
}
}
public string OrderCloseDate
{
get
{
return orderCloseTimeEditTxt.Text;
}
set
{
orderCloseTimeEditTxt.Text = value;
}
}
private int i = 1;
#endregion
#region The Panel Control propertiy
private bool _Visible;
public bool Visible
{
get
{
return this._Visible;
}
set
{
this._Visible = value;
}
}
#endregion
private OrdersBL _orderBL = new OrdersBL();
private CustomersBL _customerBL = new CustomersBL();
protected void Page_Load(object sender, EventArgs e)
{
EmployeeID = Session["EmployessID"].ToString();
int employeesID=Convert.ToInt32(Session["EmployessID"].ToString());
int orgID = _vinciService.GetOrgIDByEmployeessID(employeesID,employeesID, _basePage.Ticket,out _basePage.error_Message);
string employeesName=_vinciService.GetEmployeeName(employeesID,employeesID,_basePage.Ticket,out _basePage.error_Message);
BindToOrderID(Convert.ToInt32(Request.QueryString["OrderID"].ToString()));
ViewState["ordersID"] = Request.QueryString["OrderID"].ToString();
DataBind(Convert.ToInt32(Request.QueryString["OrderID"].ToString()));
this.orderIDTxt.Text = Request.QueryString["OrderID"].ToString();
this.orderIDEditTxt.Text = this.orderIDTxt.Text;
if (orgID != 0)
{
if (_vinciService.GetOrganizationInfo(orgID,orgID, _basePage.Ticket,out _basePage.error_Message).CanRelayRequire == 1)
{
State(employeesID.ToString(),employeesName);
}
else if (_vinciService.GetOrganizationInfo(orgID, orgID, _basePage.Ticket, out _basePage.error_Message).CanRelayRequire == 0)
{
State(employeesID.ToString(),employeesName);
}
if (_vinciService.GetOrganizationInfo(orgID,orgID, _basePage.Ticket,out _basePage.error_Message).CanInputTransportInfo == 1)
{
State(employeesID.ToString(),employeesName);
}
else if (_vinciService.GetOrganizationInfo(orgID, orgID, _basePage.Ticket, out _basePage.error_Message).CanInputTransportInfo == 0)
{
State(employeesID.ToString(),employeesName);
}
if (_vinciService.GetOrganizationInfo(orgID, orgID, _basePage.Ticket,out _basePage.error_Message).CanConfirmReceive == 1)
{
State(employeesID.ToString(),employeesName);
}
else if (_vinciService.GetOrganizationInfo(orgID,orgID, _basePage.Ticket, out _basePage.error_Message).CanConfirmReceive ==0)
{
State(employeesID.ToString(),employeesName);
}
if (_vinciService.GetOrganizationInfo(orgID, orgID, _basePage.Ticket,out _basePage.error_Message).CanCloseOrder == 1)
{
State(employeesID.ToString(),employeesName);
}
else if (_vinciService.GetOrganizationInfo(orgID, orgID, _basePage.Ticket, out _basePage.error_Message).CanCloseOrder ==0)
{
State(employeesID.ToString(),employeesName);
}
this.orderDetail.Enabled = false;
}
else
{
this.orderDetail.Enabled = true;
}
Response.Write("<script>alert('部门" + orgID+employeesName + "');</script>");
}
/// <summary>
/// 判断订单状态
/// </summary>
public void State(string employeesID,string employeesName)
{
try
{
this.customerNameEditTxt.SelectedItem.Text = this.customerTxt.Text;
this.orderCreateTimeEdit.Value = this.orderCreateTimeTxt.Text;
this.orderRequiredTimeEdit.Value = this.orderRequiredTimeTxt.Text;
this.noteEditTxt.Text = this.orderNoteTxt.Text;
this.orderCreateEditTxt.SelectedItem.Text = this.orderCreaterTxt.Text;
this.orgEditTxt.Text = this.orgTxt.Text;
if (this.orderCreaterTxt.Text != "" && this.productStoreHourserTxt.Text == "")
{
this.orderDetailEditPanel.Enabled = false;
this.productStoreHourseEdiPanel.Enabled = true;
this.productSendEditPanel.Enabled = false;
this.productReciveEditPanel.Enabled = false;
this.orderCloseEditPanel.Enabled = false;
this.storeHourseTimeEditTxt.Value = Convert.ToString(System.DateTime.Now);
this.storeHourseTimeEditTxt.Disabled = true;
this.storeHourserEditTxt.SelectedItem.Text = employeesName;
this.storeHourserEditTxt.SelectedItem.Value = employeesID;
}
if (this.productStoreHourserTxt.Text != "" && this.productSendInfoTxt.Text == "")
{
this.orderDetailEditPanel.Enabled = false;
this.productStoreHourseEdiPanel.Enabled = false;
this.productSendEditPanel.Enabled = true;
this.productReciveEditPanel.Enabled = false;
this.orderCloseEditPanel.Enabled = false;
this.productSendReceviceEditTxt.SelectedItem.Text = employeesName;
this.productSendReceviceEditTxt.SelectedItem.Value =employeesID;
this.productSendTimeEditTxt.Text = System.DateTime.Now.ToString();
this.productSendTimeEditTxt.ReadOnly = true;
this.storeHourseTimeEditTxt.Value = this.productStoreHourseTimeTxt.Text;
this.storeHourserEditTxt.SelectedItem.Text = this.productStoreHourserTxt.Text;
this.storeHourseNoteEditTxt.Text = this.productStoreHourseNoteTxt.Text;
}
if (this.productSendInfoTxt.Text != "" && this.productReceiverTxt.Text == "")
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -