Esempio n. 1
0
 ///<summary>
 /// Creates a CM_EIP.
 /// <param name="message">The Message to which this Type belongs</param>
 /// <param name="description">The description of this type</param>
 ///</summary>
 public CM_EIP(IMessage message, string description)
     : base(message, description)
 {
     data = new IType[2];
     data[0] = new EI(message,"Parent´s placer order number");
     data[1] = new EI(message,"Parent´s filler order number");
 }
Esempio n. 2
0
    public InitialI(Ice.ObjectAdapter adapter)
    {
        _adapter = adapter;
        _b1 = new BI();
        _b2 = new BI();
        _c = new CI();
        _d = new DI();
        _e = new EI();
        _f = new FI(_e);

        _b1.theA = _b2; // Cyclic reference to another B
        _b1.theB = _b1; // Self reference.
        _b1.theC = null; // Null reference.

        _b2.theA = _b2; // Self reference, using base.
        _b2.theB = _b1; // Cyclic reference to another B
        _b2.theC = _c; // Cyclic reference to a C.

        _c.theB = _b2; // Cyclic reference to a B.

        _d.theA = _b1; // Reference to a B.
        _d.theB = _b2; // Reference to a B.
        _d.theC = null; // Reference to a C.
    }
Esempio n. 3
0
File: TXA.cs Progetto: snosrap/nhapi
 ///<summary>
 /// Returns all repetitions of Placer Order Number (TXA-14).
 ///</summary>
 public EI[] GetPlacerOrderNumber()
 {
     EI[] ret = null;
     try {
     IType[] t = this.GetField(14);
     ret = new EI[t.Length];
     for (int i = 0; i < ret.Length; i++) {
     ret[i] = (EI)t[i];
     }
     } catch (HL7Exception he) {
     HapiLogFactory.GetHapiLog(this.GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", he);
     throw new System.Exception("An unexpected error ocurred", he);
     } catch (System.Exception cce) {
     HapiLogFactory.GetHapiLog(GetType()).Error("Unexpected problem obtaining field value.  This is a bug.", cce);
     throw new System.Exception("An unexpected error ocurred", cce);
       }
      return ret;
 }
Esempio n. 4
0
        private void ShowReturnMsg(EI.EIInfo outBlock)
        {
            //设置返回信息
            if (outBlock.sys_info.flag == 0)
            {
                //this.//EFMsgInfo = string.Format(EP.EPES.EPESC0000118/*成功执行 sqlcode is {0}*/, outBlock.sys_info.sqlcode.ToString());

            }
            else if (outBlock.sys_info.flag < 0)
            {
                //this.//EFMsgInfo = string.Format(EP.EPES.EPESC0000119/*后台程序调用失败! {0}*/, outBlock.sys_info.msg);

                //MessageBox.Show(//this.//EFMsgInfo, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);

            }
        }
Esempio n. 5
0
			public void Run (AstNode compilationUnit)
			{
				var ei = new EI ();
				ei.Changed = true;
				while (ei.Changed) {
					ei.Changed = false;
					compilationUnit.AcceptVisitor (ei);
				}
			}
Esempio n. 6
0
        private void ShowReturnMsg(EI.EIInfo outBlock)
        {
            //设置返回信息
            if (outBlock.sys_info.flag == 0)
            {
                //this.EFMsgInfo = EP.EPES.EPESC0000077/*执行成功*/;

            }
            else if (outBlock.sys_info.flag < 0)
            {
                //this.EFMsgInfo = string.Format(EP.EPES.EPESC0000057/*后台程序调用失败! {0} sqlcode is {1}{2}*/, outBlock.sys_info.msg, outBlock.sys_info.sqlcode.ToString(),
                //    outBlock.sys_info.sqlmes);

               // MessageBox.Show(//this.EFMsgInfo, EP.EPES.EPESC0000024/*提示*/, MessageBoxButtons.OK, MessageBoxIcon.Error);

            }
        }
Esempio n. 7
0
        private void InitOthType(EI.EIInfo eiInfo)
        {
            if (eiInfo == null)
            {
                MessageBox.Show(EP.EPES.EPESC0000146/*获取资源类型失败!*/, EP.EPES.EPESC0000024/*提示*/, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            fgDevLookUpEditType.Properties.DataSource = eiInfo.Tables[0];// othResType.Tables["OthType"];
            fgDevLookUpEditType.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("CODE"));
            fgDevLookUpEditType.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("CODE_DESC_1_CONTENT"));
            fgDevLookUpEditType.Properties.ValueMember = "CODE";
            fgDevLookUpEditType.Properties.DisplayMember = "CODE_DESC_1_CONTENT";

            fgDevLookUpEditType.EditValue = eiInfo.Tables[0].Rows[0]["CODE"];

            repositoryItemLookUpEditType.Properties.DataSource = eiInfo.Tables[0];// othResType.Tables["OthType"];
            repositoryItemLookUpEditType.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("CODE"));
            repositoryItemLookUpEditType.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("CODE_DESC_1_CONTENT"));
            repositoryItemLookUpEditType.Properties.DisplayMember = "CODE_DESC_1_CONTENT";
            repositoryItemLookUpEditType.Properties.ValueMember = "CODE";
        }