/// <summary> /// 加载仓库单据 /// </summary> /// <param name="p_IOFormID"></param> private void LoadIOFormWin(int p_IOFormID, FormStatus p_FormStatus) { string sql = "SELECT HeadType,SubType FROM WH_IOForm WHERE ID=" + SysString.ToDBString(p_IOFormID); DataTable dt = SysUtils.Fill(sql); int headtype = 0; int subtype = 0; int toptypeid = 0; string formClassName = string.Empty; if (dt.Rows.Count != 0)// { headtype = SysConvert.ToInt32(dt.Rows[0]["HeadType"]); subtype = SysConvert.ToInt32(dt.Rows[0]["SubType"]); } else { headtype = this.FormListAID; } toptypeid = Common.GetFormListTopTypeByFormListID(this.FormListAID); switch (toptypeid) { case (int)WHFormList.入库: formClassName = "frmInWHEdit"; break; case (int)WHFormList.出库: formClassName = "frmOutWHEdit"; break; //case (int)WHFormList.形态转换: // formClassName = "frmTurnForm"; // break; case (int)WHFormList.期初入库: formClassName = "frmDefaultInWHEdit"; headtype = this.FormListAID; break; case (int)WHFormList.盘点: formClassName = "frmCheckWHEdit"; headtype = this.FormListAID; break; case (int)WHFormList.移库: formClassName = "frmMoveWHEdit"; headtype = this.FormListAID; break; } if (formClassName != string.Empty) { MDIForm.ContextMenuOpenForm(FUISourceObject.GetResultArrayList(FUISourceObject.SourceForm, this), formClassName, headtype, 0, p_IOFormID.ToString(), p_FormStatus); } }
private void linkSearch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { //timeOut.Enabled = true; LinkLabel link = (LinkLabel)sender; if (link.Tag.ToString() != string.Empty) { string[] linkinfor = ((string)link.Tag).Split(','); MDIForm.ContextMenuOpenForm(FUISourceObject.GetResultArrayList(FUISourceObject.SourceForm, this), linkinfor[0].ToString(), SysConvert.ToInt32(linkinfor[1]), SysConvert.ToInt32(linkinfor[2]), linkinfor[3].ToString(), FormStatus.查询); notifyIcon1.Visible = true; this.Hide(); } } catch (Exception ex) { this.ShowMessage(ex.Message); } }
/// <summary> /// 转向目标页 /// </summary> public void NavigateWin(string p_FormClassName, string p_ParentID, FormStatus p_MFormStatus) { MDIForm.ContextMenuOpenForm(FUISourceObject.GetResultArrayList(FUISourceObject.SourceForm, this), p_FormClassName, this.FormListAID, this.FormListBID, this.SubmitFlag, this.AuditFlag, p_ParentID, p_MFormStatus); }